diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2016-05-18 10:21:35 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2016-05-18 10:21:35 +0200 |
| commit | f9637492b32706e4c348f1fdde8e4416ee114186 (patch) | |
| tree | 0ab913f5dce7f1d41e6d9ed952acbccdbeb3041c | |
| parent | 73fae9de21bbd9c1b2e2a1b18959a55ae8166b7b (diff) | |
| download | dotfiles-f9637492b32706e4c348f1fdde8e4416ee114186.tar.gz dotfiles-f9637492b32706e4c348f1fdde8e4416ee114186.zip | |
Use ag for searching stuff in vim
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
| -rw-r--r-- | agignore | 12 | ||||
| -rw-r--r-- | bashrc | 1 | ||||
| -rwxr-xr-x | install.sh | 3 | ||||
| -rw-r--r-- | vim/autocmd.vim | 4 | ||||
| -rw-r--r-- | vim/bundles.vim | 3 |
5 files changed, 20 insertions, 3 deletions
diff --git a/agignore b/agignore new file mode 100644 index 0000000..a9ebf83 --- /dev/null +++ b/agignore @@ -0,0 +1,12 @@ +.yardoc +public/images +public/system +data +log +tmp +*.exe +*.so +*.dat +.git +.hg +.svn @@ -133,3 +133,4 @@ export PATH="$PATH:$HOME/.rvm/bin" # Some other misc. alias. alias iosc="osc -A https://api.suse.de" +alias ag='ag --nocolor --path-to-agignore ~/.agignore' @@ -19,6 +19,7 @@ cp gemrc $HOME/.gemrc cp gitcompletion.sh $HOME/.gitcompletion.sh cp gitconfig $HOME/.gitconfig cp global.gitignore $HOME/.gitignore +cp agignore $HOME/.agignore cp hgrc $HOME/.hgrc cp hgcompletion.sh $HOME/.hgcompletion.sh cp global.hgignore $HOME/.hgignore @@ -30,7 +31,7 @@ chmod +x $HOME/.rake_completion # i3 and X stuff. An incomplete list of openSUSE packages that I need in order # to have a good i3 environment is: i3 xlockmore dunst i3status nitrogen scrot -# breeze5-cursors konsole gpicview okular dmenu weechat. +# breeze5-cursors konsole gpicview okular dmenu weechat the_silver_searcher. mkdir -p $HOME/.config/dunst $HOME/.i3 cp i3/config $HOME/.i3/config cp i3status.conf $HOME/.i3status.conf diff --git a/vim/autocmd.vim b/vim/autocmd.vim index 055e03d..cbba932 100644 --- a/vim/autocmd.vim +++ b/vim/autocmd.vim @@ -3,11 +3,11 @@ " Some rules regarding indentation on different languages. autocmd FileType sh setlocal shiftwidth=4 tabstop=4 autocmd FileType perl setlocal shiftwidth=4 tabstop=4 -autocmd FileType c setlocal shiftwidth=4 tabstop=4 +autocmd FileType c setlocal noexpandtab shiftwidth=4 tabstop=4 autocmd FileType yacc setlocal shiftwidth=4 tabstop=4 autocmd FileType go setlocal noexpandtab shiftwidth=4 tabstop=4 autocmd FileType ruby setlocal shiftwidth=2 tabstop=2 -autocmd FileType cpp setlocal shiftwidth=4 tabstop=4 +autocmd FileType cpp setlocal noexpandtab shiftwidth=4 tabstop=4 autocmd FileType php setlocal noexpandtab shiftwidth=4 tabstop=4 autocmd FileType javascript setlocal shiftwidth=2 tabstop=2 diff --git a/vim/bundles.vim b/vim/bundles.vim index c221c10..bdf0f4b 100644 --- a/vim/bundles.vim +++ b/vim/bundles.vim @@ -25,6 +25,9 @@ map <leader>s ysiw " Let CtrlP's window to be taller than its default configuration. let g:ctrlp_match_window = 'max:40' +" Hi-yo Silver! +let g:ctrlp_user_command = 'ag %s -l --nocolor --hidden -g ""' + " Tell vim-go to use goimports on save. let g:go_fmt_command = "goimports" |
