.vimrc

As a reference, here is my current .vimrc file, stripped from a few things specific to my current job:

" ---------------
" Start Plug
" ---------------
call plug#begin('~/.vim/plugged')

" git
Plug 'tpope/vim-fugitive'

" utils
Plug 'rking/ag.vim'         " ag fro grepping in vim
Plug 'tpope/vim-commentary' " gcc gc etc for commenting
Plug 'tpope/vim-surround'   " change surrounding chars
Plug 'tpope/vim-unimpaired' " [<space> and more
Plug 'tpope/vim-sensible'   " default settings that makes sense
"Plug 'tpope/vim-rsi'        " shell/emacs binding in insert mode
Plug 'tpope/vim-tbone'      " tmux integration in vim
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'

" wiki + tw
Plug 'vimwiki/vimwiki'
Plug 'tbabej/taskwiki'

" appearance
Plug 'powerline/powerline'
Plug 'noah/fu'

" Add plugins to &runtimepath
call plug#end()

" ---------------
" Behavior
" ---------------
syntax on
set nobackup
set undodir=~/etc/vim/undo
set history=1000
set undolevels=1000
set wildignore=*.swp,*.bak,*.pyc,*.class
set hidden " allow changing buffer from unsaved

set ai
set cinoptions=(0
set cindent
set nocompatible
set ruler
set hlsearch
set wildmode=list:longest "bash like completion

set mouse=vn
set clipboard=unnamed

filetype plugin on
if has("autocmd")
  autocmd BufRead *.txt set tw=78 sw=2 ts=2 et
  autocmd BufRead *.py set tw=80 sw=4 ts=4 et
  autocmd BufRead *.sh set ts=4 sw=4 et noai nocin
  autocmd Bufread *.wiki set tw=80 ts=4 sw=4 et ai
endif

" spellcheck in rst
autocmd FileType rst setlocal spell spelllang=en_us
autocmd Filetype rst set tw=80 sw=2 ts=2 et

" ---------------
" Appearance
" ---------------
set term=xterm-256color
set t_Co=256
set background=dark
set listchars=tab:▸\ ,eolcolorscheme fu

set laststatus=2
set cursorline
set nocursorcolumn
set colorcolumn=80
highlight ColorColumn ctermbg=16
highlight CursorLine ctermbg=23 term=bold cterm=bold

" Syntax error hilighting, this should be after colorscheme
syntax match Error "\(^\t.*\n\)\@<= \+"
syntax match Error "\(^ \+.*\n\)\@<=\t\+"
autocmd FileType c* syntax match Error '\%>80v.\+'

" enable powerline
set rtp+=/home/bleader/.vim/plugged/powerline/powerline/bindings/vim

" enable fzf
set rtp+=~/.fzf

" ---------------
" Binds
" ---------------

" use , for map leader, feel easier than \
let mapleader=","

set pastetoggle=<F9>

" edit/reload vimrc quickly
nmap <silent> <leader>ev :e $MYVIMRC<CR>
nmap <silent> <leader>sv :so $MYVIMRC<CR>

" allow use of ; in place of :
nnoremap ; :

" clear search hilight
nmap <silent> <leader>/ :nohl<CR>

" Error list binds
nnoremap <leader>n :cn<CR>zz
nnoremap <leader>p :cp<CR>zz

" compute line through rcpy https://github.com/bleader/rcpy
map <F4> yypV:!rcpy<CR>

" enable/disable list
imap <F1> <C-o>:set nolist!<CR>
map <F1> <ESC>:set nolist!<CR>

" moving around centering
nnoremap n nzz
nnoremap N Nzz
nnoremap * *zz
nnoremap # #zz
nnoremap g* g*zz
nnoremap g# g#zz
nnoremap [[ [[zz
nnoremap ]] ]]zz
nnoremap {{ {{zz
nnoremap }} }}zz

" debug printf in C
map <leader>dd oprintf("%s:%d\n", __func__, __LINE__);<Esc>==

" paste selection to haste
vnoremap Y <esc>:'<,'>:w !haste<CR>

" ---------------
" GIT
" ---------------
nnoremap <leader>gd :Gvdiff<CR>
nnoremap <leader>gs :Gstatus<CR>
nnoremap <leader>gl :Glog --<CR>:copen<CR>
nnoremap <leader>gL :Git l<CR>
nnoremap <leader>gg :Ggrep <cword><CR>
nnoremap <leader>ag :Ag <cword><CR>
nnoremap <leader>gc :Gcommit -s -v<CR>
nnoremap <leader>gS :Git show<CR>
nnoremap <leader><leader>gS :Git show <cword><CR>
autocmd BufReadPost fugitive://* set bufhidden=delete

let g:git_branch_status_head_current=1 
let g:git_branch_status_text="branch "
let g:git_branch_status_nogit="no git"
let g:git_branch_status_around="{}"

fu! GitReview()
    Glog --reverse origin/master.. -- .
    copen
endf
command Greview call GitReview()
nnoremap <leader>gr :Greview<CR>

" ---------------
" Cscope bindings and configuration (autoload of cscope.out)
" ---------------
nmap <leader>cs :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap <leader><leader>cs :vert scs find s <C-R>=expand("<cword>")<CR><CR>
nmap <leader>cg :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap <leader><leader>cg :vert scs find g <C-R>=expand("<cword>")<CR><CR>
nmap <leader>cc :cs find c <C-R>=expand("<cword>")<CR><CR>
nmap <leader><leader>cc :vert scs find c <C-R>=expand("<cword>")<CR><CR>
nmap <leader>ct :cs find t <C-R>=expand("<cword>")<CR><CR>
nmap <leader><leader>ct :vert scs find t <C-R>=expand("<cword>")<CR><CR>
nmap <leader>ce :cs find e <C-R>=expand("<cword>")<CR><CR>
nmap <leader><leader>ce :vert scs find e <C-R>=expand("<cword>")<CR><CR>
nmap <leader>cf :cs find f <C-R>=expand("<cfile>")<CR><CR>
nmap <leader><leader>cf :vert scs find f <C-R>=expand("<cfile>")<CR><CR>
nmap <leader>ci :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
nmap <leader><leader>ci :vert scs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
nmap <leader>cd :cs find d <C-R>=expand("<cword>")<CR><CR>
nmap <leader><leader>cd :vert scs find d <C-R>=expand("<cword>")<CR><CR>

if has("cscope") && filereadable("/usr/bin/cscope")
   set csprg=/usr/bin/cscope
   set csto=0
   set cst
   set nocsverb
   " add any database in current directory
   if filereadable("cscope.out")
      cs add cscope.out
   " else add database pointed to by environment
   elseif $CSCOPE_DB != ""
      cs add $CSCOPE_DB
   endif
   set csverb
endif

fu! CscopeReload()
   cscope kill 0
   !cscope -R -b
   cscope add cscope.out
endf

nmap <leader>cR :call CscopeReload()<CR>

" edit .configs
map <leader>uu ^i# <esc>$xxA is not set<esc>
map <leader>ss ^xxEld$a=y<esc>

" FZF
let g:fzf_command_prefix="Fzf"
nnoremap <leader>f :FzfFiles<cr>
nnoremap <leader>b :FzfBuffers<cr>
inoremap <expr> <c-x><c-k> fzf#vim#complete#word({'left': '15%'})

30 décembre 2015 13:26:14 -- tags [ vim , configuration ]


11 novembre 2016 05:17:48 - Ahsgdfloqifg

Pgksrjgiohi hw hweokfjeq ojfe jfweiogwo gwoj wijf gdhgtrj575 y6u75tyhgf 5yu5regr

8 janvier 2017 17:39:49 - Williamtum

Some Elementary Advice To Effectively Defeat Panic Attacks Did you know that people with higher than normal intelligence are prone to panic attacks? If you experience these attacks, hopefully this knowledge along with the other helpful tips in this article will assist you with finding peace of mind in trying to deal with your situation. Take a few minutes to read more great information.|Many people believe that panic attacks are something that cannot be controlled, but this is far from the truth. With an open mind and the proper education, you can have your panic attacks under control in no time. Read the following article to get the education on panic attacks that you need. [url=https://www.acheterviagrafr24.com/]https://www.acheterviagrafr24.com/[/url]

3 mai 2017 14:00:48 - RonaldGueta

[url=https://www.viagrasansordonnancefr.com/]viagrasansordonnancefr.com[/url] acheter viagrasansordonnancefr

7 mai 2017 06:11:16 - dirty knock knock jokes

I just couldn't depart your website prior to suggesting that I really loved the usual information a person supply to your guests? Is going to be again ceaselessly to inspect new posts

3 juin 2017 22:37:39 - Dannyneign

Attention Required! | Cloudflare [url=http://acheterdufrance.com/]Show more![/url]

27 juin 2017 19:40:55 - TimothyJaday

301 Moved Permanently [url=https://www.viagrapascherfr.com/]More info!..[/url]

8 septembre 2017 08:07:46 - Ralphbef

cialis generic in usa <a href="http://cialisxrm.com/">http://cialisxrm.com/</a> cialis canada over counter [url=http://cialisxrm.com/]buy cialis online[/url]

3 novembre 2017 01:28:45 - MelissaAnity

This message is posted here using XRumer + XEvil 4.0 XEvil 4.0 is a revolutionary application that can bypass almost any anti-botnet protection. Captcha Recognition Google (ReCaptcha-1, ReCaptcha-2), Facebook, Yandex, VKontakte, Captcha Com and over 8.4 million other types! You read this - it means it works! ;) Details on the official website of XEvil.Net, there is a free demo version.

16 novembre 2017 22:18:05 - Juliecip

This message is posted here using XRumer + XEvil 4.0 XEvil 4.0 is a revolutionary application that can bypass almost any anti-botnet protection. Captcha Recognition Google (ReCaptcha-1, ReCaptcha-2), Facebook, Yandex, VKontakte, Captcha Com and over 8.4 million other types! You read this - it means it works! ;) Details on the official website of XEvil.Net, there is a free demo version.

17 novembre 2017 18:23:05 - Juliecip

This message is posted here using XRumer + XEvil 4.0 XEvil 4.0 is a revolutionary application that can bypass almost any anti-botnet protection. Captcha Recognition Google (ReCaptcha-1, ReCaptcha-2), Facebook, Yandex, VKontakte, Captcha Com and over 8.4 million other types! You read this - it means it works! ;) Details on the official website of XEvil.Net, there is a free demo version.

22 novembre 2017 05:21:49 - DavidKen

Some people, especially those running on busy daily schedules tend to use the pills to help maintain weight since they can not afford to follow all the diet programs. This is not advised. It is recommended that one seek advice from a professional in this field before using the pills. This can save one from many dangers associated with the misuse. The diet pills should always be taken whole. Some people tend to divide the pills to serve a longer period of time. This is not advised and can lead to ineffectiveness. If it is required that one takes a complete tablet, it means that a certain amount of the ingredients are required to achieve the desired goal. It is also recommended that one does not crush the pill and dissolve it in beverages. Chemicals found in beverages have the potential of neutralizing the desired nutrients in the pill thereby leading to ineffectiveness. The best way to take the tablets is swallowing them whole with a glass of water. The diet pills speed up the metabolic processes. This is the key factor that leads to the burning of all the fats in the body. This means that one passes out lots of urine, which subsequently leads to dehydration. It is imperative that the user take lots of water round the clock. This will help curb dehydration, which can lead to health problems. In addition to that, water offers the required medium for the function of the nutrients and elimination of the fats. When buying the review of diet pills, it is imperative that one gets the most recommended dose. People tend to compromise the quality and effectiveness of the tablets due to the variation in cost. The low priced pills depict poor quality, which means their effectiveness is not reliable. Some have also been found to cause health problems. The dose should also be taken as recommended. Over dose will not speed up the process but rather lead to complication. This will increase risk of side effects. If the taking of the pill is forgotten, do not take more to compensate for the lost time. The diet plan enclosed with the diet pills has also to be followed. According to the requirements, the termination of the diet must be done even with no results. This means your body is irresponsive.

28 novembre 2017 00:31:14 - Juliezcip

This message is posted here using XRumer + XEvil 4.0 XEvil 4.0 is a revolutionary application that can bypass almost any anti-botnet protection. Captcha Recognition Google (ReCaptcha-1, ReCaptcha-2), Facebook, Yandex, VKontakte, Captcha Com and over 8.4 million other types! You read this - it means it works! ;) Details on the official website of XEvil.Net, there is a free demo version.

8 décembre 2017 20:22:49 - MashaPat

This message is posted here using XRumer + XEvil 4.0 XEvil 4.0 is a revolutionary application that can bypass almost any anti-botnet protection. Captcha Recognition Google (ReCaptcha-1, ReCaptcha-2), Facebook, BING, Hotmail, Yahoo, Yandex, VKontakte, Captcha Com - and over 8.4 million other types! You read this - it means it works! ;) Details on the official website of XEvil.Net, there is a free demo version. Check YouTube video "XEvil ReCaptcha2"

9 décembre 2017 01:59:58 - Jessiehew

A Biological Masterpiece, But Subject to Many Ills The human foot is a biological masterpiece. Its strong, flexible, and functional design enables it to do its job well and without complaint—if you take care of it and don't take it for granted. healthThe foot can be compared to a finely tuned race car, or a space shuttle, vehicles whose function dictates their design and structure. And like them, the human foot is complex, containing within its relatively small size 26 bones (the two feet contain a quarter of all the bones in the body), 33 joints, and a network of more than 100 tendons, muscles, and ligaments, to say nothing of blood vessels and nerves. [url=https://www.cialissansordonnancefr24.com/medicament-generique-cialis/]https://www.cialissansordonnancefr24.com/medicament-generique-cialis/[/url]

29 décembre 2017 22:09:32 - DamonnaVecy

[url=http://PAPINBAG.RU/?m=5970]Пижамница детская "Крольчонок Les Ptitous", 50 см, в подарочной коробке[/url] [img]http://PAPINBAG.RU/p/shop/5970demo.jpg[/img]

30 décembre 2017 05:51:35 - Susangaift

[url=https://alitems.com/g/1e8d1144947cf271b95a16525dc3e8/]Aliexpress[/url] is Great sale now... .

2 janvier 2018 05:06:30 - payday loans online bad credit

payday personal loan payday loans payday personal loan loans online no credit check

2 janvier 2018 05:36:43 - BarojazY

Encuentro que no sois derecho. Soy seguro. Puedo demostrarlo. [url=http://www.pornbreeze.com/]Free Porn clips[/url]

6 janvier 2018 19:35:29 - Marinepoefe

[url = http://mastersland.com/index.php?s=4&band_filter=74 ] http://mastersland.com/index.php?s=4&band_filter=74 [/url]

10 janvier 2018 19:35:26 - arelaBag

After examine a couple of of the weblog posts in your web site now, and I really like your means of blogging. I bookmarked it to my bookmark website listing and will be checking again soon. Pls try my website as properly and let me know what you think. http://www.nbp.pw/results/swedish+hairy http://www.sexfg.pw/s/secretary+joi http://www.maturesluts.top/s/new+stepdad http://www.milfsuck.top/s/pale+perfect+ass http://www.bustynasty.top/s/couple+fucking+on http://www.milfsuck.top/s/alison+ray http://www.maturesluts.top/s/amateur+threesome+british http://www.milkscock.top/s/sexy+feet+action http://www.maturesluts.top/s/young+brown+cock http://bjob.hordo.win/ http://www.fuckboob.top/ http://opno.life/ http://sex.buron.pw/

11 janvier 2018 16:50:47 - specadieta.com

Everyone loves it whenever people get together and share opinions. Great website, keep it up!

11 janvier 2018 19:40:18 - LindaKax

[url=https://alitems.com/g/1e8d1144947cf271b95a16525dc3e8/]Aliexpress[/url] is Great sale now... .

11 janvier 2018 23:19:41 - DenovPl

Я именую эти таблетки витаминами выходного дня. Здоровье у меня крепкое. Но с годами стал замечать упад сил в сексуальной жизни. Веду энергичный образ жизни, чувствую себя отлично. Безумно люблю секс. А здесь такой неуспех… Возникла неуверенность, даже определенный страх. Необыкновенно трудно выявить, что проще было: принять собственную несовершенность или купить виагру впервые. http://ofarma.ru Все дело в личном взгляде на себя. Почему никого вокруг не удивляет, что к определенному рубежу волнуют сложности с сердцем, суставами и т.д.? А употреблять препарат для повышения мужской силы вроде как неприятно или не принято. Что делать с общественными представлениями, стериотипами? Я сумел разобраться во всем этом. Понял, что проще выпить чудную таблетку за час до страстной ночи, чем воспринимать себя лузером. [url=http://ofarma.ru/]виагра где купить москве дешево[/url] Да, мне пятьдесят два года. Вопреки возрасту я веду более чем динамичный образ жизни во всех отношениях. Купить виагру в Москве с доставкой, оказывается, сегодня еще проще, чем сходить в аптеку. На сайте предложен огромный ассортимент различных медикаментов аналогичной направленности. Но я остановился именно на этом прекрасном лекарстве. Один раз принял, был результат, понравилась. Нет потребности покупать что-то другое. К тому же в нем обобщены все самые расхожие свойства. Именно виагра увеличивает продолжительность секса, повышает качество секса, провоцирует возникновение эрекции. Рекомендую всем, кто столкнулся с сходной ситуацией - не концентрироваться на своих неудачах. А уверенно идти вперед - навстречу новым свершениям.

15 janvier 2018 06:59:03 - arelaBag

Thanks for the new stuff you have unveiled in your writing. One thing I would like to touch upon is that FSBO relationships are built with time. By bringing out yourself to owners the first end of the week their FSBO will be announced, prior to masses commence calling on Mon, you make a good relationship. By giving them tools, educational components, free reviews, and forms, you become a great ally. Through a personal interest in them and also their predicament, you build a solid connection that, oftentimes, pays off if the owners decide to go with an agent they know plus trust preferably you. http://www.9bbs.cc/bbs/forum.php?mod=viewthread&tid=4795&extra= http://www.haobocai.co/thread-91895-1-1.html http://ys.5cdns.com/dz/forum.php?mod=viewthread&tid=2678&extra= http://adroitsolutionz.com/forum/index.php?topic=334644.new#new http://forums.securitall.com/viewtopic.php?f=8&t=1247448 http://www.520aomen.com/forum.php?mod=viewthread&tid=44796&extra= http://jssn.jounls.com/board/product/read.html?no=53562&board_no=4 http://forum.mars-warlogs.com/viewtopic.php?f=26&t=312871 http://www.yhgd.com/forum.php?mod=viewthread&tid=948422&pid=2185290&page=1&extra=#pid2185290 http://forum.catchflame.com/viewtopic.php?f=45&t=1482470 http://forumz.fearnode.net/index.php?topic=367714.new#new