aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc36
1 files changed, 0 insertions, 36 deletions
diff --git a/vimrc b/vimrc
deleted file mode 100644
index fa53318..0000000
--- a/vimrc
+++ /dev/null
@@ -1,36 +0,0 @@
1execute pathogen#infect()
2
3let mapleader=";"
4
5syntax on
6filetype plugin indent on
7
8set number
9set hlsearch
10set list
11set modeline
12
13set background=dark
14set foldmethod=indent
15set listchars=trail:·,tab:▸\ ,eol:¬
16
17autocmd StdinReadPre * let s:std_in=1
18autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
19autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
20
21function! AppendModeline()
22 let l:modeline = printf(" vim: set ts=%d sw=%d tw=%d %set :",
23 \ &tabstop, &shiftwidth, &textwidth, &expandtab ? '' : 'no')
24 let l:modeline = substitute(&commentstring, "%s", l:modeline, "")
25 call append(line("$"), l:modeline)
26endfunction
27nnoremap <silent> <Leader>ml :call AppendModeline()<CR>
28
29noremap <Up> ""
30noremap! <Up> <Esc>
31noremap <Down> ""
32noremap! <Down> <Esc>
33noremap <Left> ""
34noremap! <Left> <Esc>
35noremap <Right> ""
36noremap! <Right> <Esc>