Repository navigation
Expand file tree
/
Copy path.vimrc
More file actions
90 lines (76 loc) · 3.62 KB
/
Copy path.vimrc
File metadata and controls
90 lines (76 loc) · 3.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
" Vim-plug required: https://github.com/junegunn/vim-plug
let fortran_free_source=1 " Fortran syntax highlighting fixed
syntax enable " highlight code
filetype plugin indent on " auto detection type of file and whitespaces depends on type of file
scriptencoding utf-8 " all scripts in utf-8
set encoding=utf8 " utf-8 for this file
" set nobackup " no backup
" set nowritebackup " no backup
" set noswapfile " no backup
set number " numbers like in IDE
set viminfofile=NONE " disable .viminfo file
" set mouse=a " interactive mouse cursor
" set cursorline " cool colorful columns(required theme)
set nowrap " no line break(in one line)
set belloff=all " no bell
set noerrorbells " no bell
set novisualbell " no bell
set expandtab " use spaces instead of tabs
set smarttab " smarter tab placment
set autoindent " new line with space as previous line
set tabstop=4 " how wide tab
set softtabstop=4 " how wide tab
set shiftwidth=4 " how wide tab
set hlsearch " highlight then searching
set incsearch " instant see what you are searching
set wildmode=longest,list " autocompletion settings
set wildmenu " autocompletion but with gui
set clipboard=unnamedplus " clipboard features
set ttyfast " fast scrolling
set so=30 " visible lines
set nocompatible " no compatibility with vi
set virtualedit=block " in visual mode you can go further(you can set, all ,if you want to edit as far as you want in any mode)
set lazyredraw " good for perfomance
set shortmess+=I " no startup message
set showcmd " show which keys you typed, and other useful information
set nuw=1 " disable spacing between corners and numbers
set termguicolors " true colors
set history=500 " Sets how many lines of history VIM has to remember
set ttimeoutlen=10 " how long wait for esc
set matchtime=1 " how long highlight will be after cursor leaves
set whichwrap+=<,>,h,l,[,] " set that so vim behaves like normal editor and goes to the next lines instead of not moving
set listchars=tab:\ \ ,space:\ ,eol:\ ,extends:>,precedes:< " set so: where start of the line and where end of the line - is visible
set list " enable previous line
nnoremap <C-u> <Nop>
nnoremap dd "_dd
nnoremap x "_x
autocmd BufNewFile,BufRead *.s,*.S set filetype=asm
autocmd BufNewFile,BufRead *.f,*.F,*.for,*.FOR set tabstop=6
autocmd BufNewFile,BufRead *.f,*.F,*.for,*.FOR set softtabstop=6
autocmd BufNewFile,BufRead *.f,*.F,*.for,*.FOR set shiftwidth=6
" you can add this too if you want: set t_Co=256 - tell vim that the terminal has 256 colors; set autoread - read if file is changed.
call plug#begin("~/.vim/plugged/")
Plug 'sheerun/vim-polyglot'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'preservim/nerdtree'
" if using gentoo: Plug 'gentoo/gentoo-syntax'
call plug#end()
" colorscheme <pick theme that you want>
" to close all windows type ':qa', to change cursor window press 'Ctrl+w' and press hjkl (or arrows) to change position, to edit things in the selected file or directory in NERDTree file explorer press 'm'.
let NERDTreeMinimalUI=1
let NERDTreeShowHidden=1
autocmd VimEnter * highlight CursorLine guibg=NONE ctermbg=NONE gui=NONE cterm=NONE
autocmd VimEnter * command TREE NERDTree
autocmd VimEnter * command CLTREE NERDTreeClose
let &t_SI = "\e[6 q"
let &t_EI = "\e[2 q"
let &t_SR = "\e[4 q"
let g:airline#extensions#whitespace#enabled=0
let g:airline_section_z='%l/%L'
let g:airline_powerline_symbols = 'nerdfonts'
let g:airline_theme='deus'
augroup FixCursor
autocmd!
autocmd VimLeave * silent !echo -ne "\e[ q"
augroup END