summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vim/ftplugin/gitcommit.vim (renamed from .vim/ftplugin/git.vim)0
-rw-r--r--.vim/ftplugin/markdown.vim6
-rw-r--r--.vim/ftplugin/yaml.vim1
-rw-r--r--.vimrc11
4 files changed, 14 insertions, 4 deletions
diff --git a/.vim/ftplugin/git.vim b/.vim/ftplugin/gitcommit.vim
index 22beee9..22beee9 100644
--- a/.vim/ftplugin/git.vim
+++ b/.vim/ftplugin/gitcommit.vim
diff --git a/.vim/ftplugin/markdown.vim b/.vim/ftplugin/markdown.vim
new file mode 100644
index 0000000..9323a65
--- /dev/null
+++ b/.vim/ftplugin/markdown.vim
@@ -0,0 +1,6 @@
+setlocal textwidth=0
+setlocal tabstop=2
+setlocal softtabstop=2
+setlocal shiftwidth=2
+setlocal expandtab
+setlocal cursorcolumn cursorline
diff --git a/.vim/ftplugin/yaml.vim b/.vim/ftplugin/yaml.vim
index 1ab36a0..9323a65 100644
--- a/.vim/ftplugin/yaml.vim
+++ b/.vim/ftplugin/yaml.vim
@@ -3,3 +3,4 @@ setlocal tabstop=2
setlocal softtabstop=2
setlocal shiftwidth=2
setlocal expandtab
+setlocal cursorcolumn cursorline
diff --git a/.vimrc b/.vimrc
index 871bfbf..edb7275 100644
--- a/.vimrc
+++ b/.vimrc
@@ -30,8 +30,8 @@ set pastetoggle=<F11>
" Enable folding by fold markers
set foldmethod=marker
-" Wrap line longer than the display
-"set wrap
+" Don't wrap line longer than the display
+set nowrap
" Textwidth of 100
set textwidth=100
@@ -183,6 +183,7 @@ autocmd vimenter * if !argc() | NERDTree | endif
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
let NERDTreeShowHidden=1
+let NERDTreeIgnore=['\.o$', '\~$', '\.swp']
map <Leader>nt :NERDTreeToggle<CR>
" }}}
@@ -202,13 +203,15 @@ Plug 'airblade/vim-gitgutter' " git status gutter
Plug 'tpope/vim-fugitive' " git commands
Plug 'tpope/vim-rhubarb' " GitHub integration
Plug 'tpope/vim-commentary' " comment out stuff
-Plug 'yegappan/taglist' " code browser using ctags/cscope
Plug 'joestringer/cscope_maps' " cscope maps
Plug 'google/vim-searchindex' " show how many times a search pattern occurs
" fzf (https://github.com/junegunn/fzf.vim)
-Plug 'junegunn/fzf', { 'do': './install --bin' }
+Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
call plug#end()
" }}}
+" {{{ commands
+:command -nargs=+ Ggr execute 'silent Ggrep!' <q-args> | cw | redraw!"
+" }}}