forked from rajeshthummalapally/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc.after
36 lines (29 loc) · 1.15 KB
/
vimrc.after
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
"This disables the arrow keys in normal and insert mode. It's a good way to force yourself to use movement commands, especially when learning.
"http://vimbits.com/bits/8
nnoremap <up> <nop>
nnoremap <down> <nop>
nnoremap <left> <nop>
nnoremap <right> <nop>
inoremap <up> <nop>
inoremap <down> <nop>
inoremap <left> <nop>
inoremap <right> <nop>
" Opens a tab edit command with the path of the currently edited file filled in
" In normal mode do <Leader>e
map <Leader>e :tabe <C-R>=expand("%:p:h") . "/" <CR>
" Create a new nested directory or create a new file inside a nested directory
" In normal mode do <Leader>p
map <Leader>p :!mktouch <C-R>=expand("%:p:h") . "/" <CR>
" Do not create swap file. In this even if a vim application has loaded a
" rails application I can open another vim instance and load the same
" application
set noswapfile
" Keep large command line history and undo levels
set history=1000
set undolevels=1000
" ensure that all aliases also work in mvim command prompt
" http://stackoverflow.com/questions/4642822/vim-is-not-obeying-command-aliases
set shell=/bin/bash\ -i
" do not display dots for trailing whitespace
set nolist
color molokai