-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvim.vim
More file actions
35 lines (29 loc) · 844 Bytes
/
Copy pathvim.vim
File metadata and controls
35 lines (29 loc) · 844 Bytes
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
"== tabline navigation ==
nnoremap <c-S-tab> :bprevious<CR>
nnoremap <c-tab> :bnext<CR>
"== quickfix navigation ==
nnoremap <leader>qn :cn<CR><ESC>
nnoremap <leader>qp :cp<CR><ESC>
"== buffer navigation
nnoremap <leader>bf :buffers<CR>:buffer
nnoremap <leader>bd :bd<CR>
"== press Ctrl-J whenever you want to split a line ==
nnoremap <NL> i<CR><ESC>
nnoremap <NL> j<CR><ESC>
"== netrw ==
nnoremap <leader>e :Explore<CR>
"== blink cursor ==
:set guicursor=a:blinkon100
"== copy to clipboard
map <F2> "*y
"== search using smartcase
set ignorecase
set smartcase
"== ident
filetype indent on
filetype plugin indent on
"== mouse, The you can press :, select text for the system,
"and press Esc to go back to Vim using the mouse events.
set mouse=nvi
"== enter read only mode when swp file found
autocmd SwapExists * let v:swapchoice = "o"