summary refs log tree commit diff
path: root/vimrc
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2018-05-08 09:08:15 -0700
committerFranck Cuny <franck.cuny@gmail.com>2018-05-08 09:08:15 -0700
commitbab433d3476259247ed38450f12bb4b447d8445e (patch)
tree9ad1ce377d2d67bc4be417c722b98589a8c2db5f /vimrc
parent[emacs] Add a few more settings for rust. (diff)
downloademacs.d-bab433d3476259247ed38450f12bb4b447d8445e.tar.gz
[vim] Add vim again.
Stallman's latest non sense pushed me over the edge. I will do my best
to reduce my usage of software created by this idiot.
Diffstat (limited to '')
-rw-r--r--vimrc33
1 files changed, 33 insertions, 0 deletions
diff --git a/vimrc b/vimrc
new file mode 100644
index 0000000..84e6b9e
--- /dev/null
+++ b/vimrc
@@ -0,0 +1,33 @@
+set encoding=utf-8
+scriptencoding utf-8
+
+set ttyfast       " assume fast terminal and send more chars for smooth redraw
+set lazyredraw    " don't redraw while executing macros, register and cmds
+set ttymouse=sgr  " like xterm2 but supporting beyond 223 columns
+
+syntax off
+
+let &statusline = '[%n] %<%F %m%r%w%y %= (%l,%c) %P of %L'
+set laststatus=2           " every window gets a statusline, always(=2)
+set scrolloff=5            " scroll edge offset (to keep some context)
+set shortmess=a            " abbreviate all(=a) messages when possible
+set showcmd                " show last command
+
+" command line completion similar to zsh default
+" complete up to longest match and display the list of possible matches
+set wildmode=list:longest
+
+call plug#begin('~/.local/share/nvim/plugged')
+
+Plug 'fatih/vim-go'
+
+Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --bin' }
+Plug 'junegunn/fzf.vim'
+Plug 'mileszs/ack.vim'
+
+Plug 'plasticboy/vim-markdown'
+
+call plug#end()
+
+" configure ack.vim to use silver surfer
+let g:ackprg = 'ag --vimgrep --smart-case'