Skip to content

Commit 2fa1718

Browse files
updated vimrc settings
1 parent a10bd96 commit 2fa1718

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

.vimrc

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,16 @@ xnoremap # y?<C-R>"<CR>
6565
nnoremap <silent> <Space> :noh<CR><Space>
6666
6767
" ----- Custom Mappings -----
68-
" Map F2 key to save file in command mode
69-
nnoremap #2 :w<CR>
70-
" Map F2 key to save file in insert mode
68+
" Map F2 key to save file in Normal mode
69+
nnoremap <F2> :w<CR>
70+
" Map F2 key to save file in Insert mode
7171
inoremap <F2> <C-o>:w<CR>
72-
" Map F3 key to save and quit file in command mode
73-
nnoremap #3 :wq<CR>
74-
" Map F4 key to clear file contents in command mode
75-
nnoremap #4 ggdG
72+
" Map F3 key to save and quit file in Normal mode
73+
nnoremap <F3> :wq<CR>
74+
" Map F4 key to clear file contents in Normal mode
75+
nnoremap <F4> ggdG
7676
" Map F5 key to copy entire contents of file to clipboard
77-
nnoremap #5 :%y+<CR>
77+
nnoremap <F5> :%y+<CR>
7878
7979
" ALT key mappings for gvim (to switch tabs similar to those in browser/terminals)
8080
nnoremap <A-1> 1gt
@@ -83,26 +83,26 @@ nnoremap <A-3> 3gt
8383
nnoremap <A-4> 4gt
8484
nnoremap <A-5> 5gt
8585
86-
" Ctrl+e to move to end of word
87-
inoremap <C-e> <Esc>ea
86+
" Ctrl+f to move to end of word
87+
inoremap <C-f> <Esc>ea
8888
" Ctrl+b to move to beginning of word
89-
inoremap <C-b> <C-o>b
89+
inoremap <C-b> <C-Left>
9090
" Ctrl+a to move to end of line
91-
inoremap <C-a> <C-o>A
91+
inoremap <C-a> <End>
9292
" Can't use Ctrl+i remapping as it affects Tab as well
93-
inoremap <C-s> <C-o>I
93+
inoremap <C-s> <Home>
9494
9595
" ----- Change/Modify default Mappings -----
9696
" change Y to behave similar to D and C
9797
nnoremap Y y$
98-
" Ctrl+v to paste from clipboard in insert mode
98+
" Ctrl+v to paste from clipboard in Insert mode
9999
" Ctrl+q can be used to insert special characters
100100
inoremap <C-v> <C-o>"+p
101101
" Ctrl+l to autocomplete sentences
102102
inoremap <C-l> <C-x><C-l>
103103
104104
" ----- Abbreviations -----
105-
" Expand p as below when it is used as a word
105+
" Expand p as shown below
106106
" #!/usr/bin/perl
107107
" use strict;
108108
" use warnings;
@@ -133,7 +133,7 @@ augroup END
133133

134134
" ----- Useful Verilog Settings -----
135135
" completion for verilog control structures
136-
" type @a/@i/@e/@I in insert mode and press Esc key
136+
" type @a/@i/@e/@I in Insert mode and press Esc key
137137
inoreabbrev @a always @()<CR>begin<CR>end<Esc>2k$
138138
inoreabbrev @i if ()<CR>begin<CR>end<Esc>2k$
139139
inoreabbrev @e else ()<CR>begin<CR>end<Esc>2k$

0 commit comments

Comments
 (0)