diff options
| author | 2015-03-30 10:25:12 +0200 | |
|---|---|---|
| committer | 2015-03-30 10:25:12 +0200 | |
| commit | 8eee1c45bef74aa6094f463f9888ac653958b3dc (patch) | |
| tree | 0e2a066fd4da4afcf08f0bef348511b5c9ac48f7 /vim | |
| parent | c7ebce541a9914d4e5a3b52e838e2ac66dd139a0 (diff) | |
| download | dotfiles-8eee1c45bef74aa6094f463f9888ac653958b3dc.tar.gz dotfiles-8eee1c45bef74aa6094f463f9888ac653958b3dc.tar.bz2 dotfiles-8eee1c45bef74aa6094f463f9888ac653958b3dc.zip | |
Moving back to stow for management
reasons: dotfiles.sh misbehaving on freebsd
Diffstat (limited to 'vim')
| l--------- | vim/.vim/autoload/pathogen.vim (renamed from vim/autoload/pathogen.vim) | 0 | ||||
| -rw-r--r-- | vim/.vim/ftplugin/python.vim (renamed from vim/ftplugin/python.vim) | 0 | ||||
| -rw-r--r-- | vim/.vimrc | 36 |
3 files changed, 36 insertions, 0 deletions
diff --git a/vim/autoload/pathogen.vim b/vim/.vim/autoload/pathogen.vim index 9a7227e..9a7227e 120000 --- a/vim/autoload/pathogen.vim +++ b/vim/.vim/autoload/pathogen.vim | |||
diff --git a/vim/ftplugin/python.vim b/vim/.vim/ftplugin/python.vim index 183ef4b..183ef4b 100644 --- a/vim/ftplugin/python.vim +++ b/vim/.vim/ftplugin/python.vim | |||
diff --git a/vim/.vimrc b/vim/.vimrc new file mode 100644 index 0000000..fa53318 --- /dev/null +++ b/vim/.vimrc | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | execute pathogen#infect() | ||
| 2 | |||
| 3 | let mapleader=";" | ||
| 4 | |||
| 5 | syntax on | ||
| 6 | filetype plugin indent on | ||
| 7 | |||
| 8 | set number | ||
| 9 | set hlsearch | ||
| 10 | set list | ||
| 11 | set modeline | ||
| 12 | |||
| 13 | set background=dark | ||
| 14 | set foldmethod=indent | ||
| 15 | set listchars=trail:·,tab:▸\ ,eol:¬ | ||
| 16 | |||
| 17 | autocmd StdinReadPre * let s:std_in=1 | ||
| 18 | autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif | ||
| 19 | autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif | ||
| 20 | |||
| 21 | function! 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) | ||
| 26 | endfunction | ||
| 27 | nnoremap <silent> <Leader>ml :call AppendModeline()<CR> | ||
| 28 | |||
| 29 | noremap <Up> "" | ||
| 30 | noremap! <Up> <Esc> | ||
| 31 | noremap <Down> "" | ||
| 32 | noremap! <Down> <Esc> | ||
| 33 | noremap <Left> "" | ||
| 34 | noremap! <Left> <Esc> | ||
| 35 | noremap <Right> "" | ||
| 36 | noremap! <Right> <Esc> | ||
