Skip to content

Instantly share code, notes, and snippets.

@Idered
Created December 15, 2016 12:30
Show Gist options
  • Save Idered/c1bf3f3381a27ad5b6d7f8c2d22bae7b to your computer and use it in GitHub Desktop.
Save Idered/c1bf3f3381a27ad5b6d7f8c2d22bae7b to your computer and use it in GitHub Desktop.

Revisions

  1. @stsewd stsewd revised this gist Dec 11, 2016. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -28,7 +28,7 @@ Plugin 'easymotion/vim-easymotion' " Move quickly on vim
    Plugin 'majutsushi/tagbar' " Display tags in a window

    Plugin 'danro/rename.vim' " Rename current open file/buffer
    Plugin 'matchit.zip' " Extend % for matching html tags
    Plugin 'matchit.zip' " Extend % for matching TML tags
    Plugin 'tpope/vim-repeat' " Extend . for repeat scripts actions

    Plugin 'Shougo/vimproc.vim' " Interactive command execution
    @@ -106,6 +106,7 @@ set number " Display line numbers
    set relativenumber " Show relative line numbers
    set cursorline " Highlight current line
    set ruler " Display cursor position
    set linespace=2 " Pixels between lines

    set guioptions-=T " Disable the toolbar
    set guioptions-=m " Disable the menubar
    @@ -207,8 +208,9 @@ nnoremap <leader>j :bprevious<CR>
    " Close current buffer
    nnoremap <leader>q :bdelete<CR>
    " Disable highlighting search with ctrl-n
    nmap <silent> <C-n> :noh<CR>
    " Disable highlighting search with ctrl-c or escape
    nnoremap <esc> :noh<CR>
    nnoremap <C-c> :noh<CR>

    " .........................................................
  2. @stsewd stsewd revised this gist Dec 10, 2016. 1 changed file with 6 additions and 3 deletions.
    9 changes: 6 additions & 3 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -18,6 +18,7 @@ Plugin 'VundleVim/Vundle.vim' " Plugin manager

    Plugin 'scrooloose/nerdtree' " Tree explorer
    Plugin 'vim-airline/vim-airline' " Status bar & tabline
    Plugin 'yggdroot/indentline' " Show indentation lines

    Plugin 'xolox/vim-session' " Manage vim sessions automatically
    Plugin 'xolox/vim-misc' " Required by vim-session
    @@ -42,6 +43,8 @@ Plugin 'chrisbra/nrrwrgn' " Focus & isolate a region (selected text)
    " Problem: show half icons
    " Plugin 'tiagofumo/vim-nerdtree-syntax-highlight' " Colored files and icons on nerdtree

    Plugin 'ivalkeen/nerdtree-execute' " Add execute menu to NerdTree


    " ## Git Integration
    Plugin 'tpope/vim-fugitive' " Git wrapper for vim
    @@ -143,7 +146,7 @@ set visualbell " Prevent Vim from beeping
    set noerrorbells " Prevent Vim from beeping


    " ## Identation
    " ## Indentation
    set tabstop=4
    set shiftwidth=4
    set softtabstop=4
    @@ -152,9 +155,9 @@ set expandtab
    set autoindent


    " ## Theme & Colorsheme
    " ## Theme & Colorscheme
    let g:solarized_termcolors=256
    set background=dark
    set background=light
    colorscheme solarized
    hi clear CursorLineNr " Clear highlighting line number

  3. @stsewd stsewd revised this gist Dec 10, 2016. 1 changed file with 13 additions and 9 deletions.
    22 changes: 13 additions & 9 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,11 @@
    " Cancel the compatibility with Vi.
    set nocompatible

    " # Vundle Configurations

    " .........................................................
    " # Vundle
    " .........................................................

    filetype off

    " Set the runtime path to include Vundle and initialize
    @@ -83,14 +87,13 @@ Plugin 'shawncplus/phpcomplete.vim'
    Plugin 'ekalinin/dockerfile.vim'



    call vundle#end()
    filetype plugin indent on




    " .........................................................
    " # Settings
    " .........................................................

    " ## GUI
    set title " Update the title of your window or your terminal
    @@ -151,7 +154,7 @@ set autoindent

    " ## Theme & Colorsheme
    let g:solarized_termcolors=256
    set background=light
    set background=dark
    colorscheme solarized
    hi clear CursorLineNr " Clear highlighting line number

    @@ -165,9 +168,9 @@ set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
    set writebackup




    " .........................................................
    " # Key-Bindings
    " .........................................................

    " Map <Leader> to space
    let mapleader = " "
    @@ -205,9 +208,9 @@ nnoremap <leader>q :bdelete<CR>
    nmap <silent> <C-n> :noh<CR>



    " .........................................................
    " # Plugins Settings
    " .........................................................

    " ## Sintastic
    set statusline+=%#warningmsg#
    @@ -290,4 +293,5 @@ let g:WebDevIconsNerdTreeAfterGlyphPadding = ' '


    " ## Rootignore
    " TODO: doesn't work
    let g:RootIgnoreAgignore = 1 " Load wildignore from .gitignore
  4. @stsewd stsewd revised this gist Dec 10, 2016. 1 changed file with 42 additions and 15 deletions.
    57 changes: 42 additions & 15 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -11,13 +11,14 @@ call vundle#begin()

    " ## General & Utilities
    Plugin 'VundleVim/Vundle.vim' " Plugin manager

    Plugin 'scrooloose/nerdtree' " Tree explorer
    Plugin 'vim-airline/vim-airline' " Status bar & tabline

    Plugin 'xolox/vim-session' " Manage vim sessions automatically
    Plugin 'xolox/vim-misc' " Required by vim-session

    Plugin 'kien/ctrlp.vim' " Fuzzy file finder
    Plugin 'ctrlpvim/ctrlp.vim' " Fuzzy file finder
    Plugin 'easymotion/vim-easymotion' " Move quickly on vim
    Plugin 'majutsushi/tagbar' " Display tags in a window

    @@ -34,16 +35,22 @@ Plugin 'tpope/vim-dispatch' " Async vim

    Plugin 'chrisbra/nrrwrgn' " Focus & isolate a region (selected text)

    " Problem: show half icons
    " Plugin 'tiagofumo/vim-nerdtree-syntax-highlight' " Colored files and icons on nerdtree


    " ## Git Integration
    Plugin 'tpope/vim-fugitive' " Git wrapper for vim
    Plugin 'airblade/vim-gitgutter' " Show git diff on the numbers column
    Plugin 'xuyuanp/nerdtree-git-plugin' " Show git status on nerdtree
    Plugin 'octref/rootignore' " Set wildignore from .gitignore file


    " ## Themes & Color Schemes
    Plugin 'altercation/vim-colors-solarized' " Solarized theme
    Plugin 'vim-airline/vim-airline-themes' " Themes for airline
    " Plugin 'flazz/vim-colorschemes' " Several colorschemes
    " ## Autocompletition & Snippets
    Plugin 'valloric/youcompleteme'

    Plugin 'sirver/ultisnips'
    Plugin 'honza/vim-snippets'


    " ## Linters & Formatters
    @@ -54,6 +61,13 @@ Plugin 'scrooloose/nerdcommenter' " Comment lines easily
    Plugin 'jiangmiao/auto-pairs' " Autopair quotes, parentheses, etc.


    " ## Themes & Color Schemes
    Plugin 'altercation/vim-colors-solarized' " Solarized theme
    Plugin 'vim-airline/vim-airline-themes' " Themes for airline
    Plugin 'ryanoasis/vim-devicons' " Show icons on nerdtree
    " Plugin 'flazz/vim-colorschemes' " Several colorschemes


    " ## HTML
    Plugin 'mattn/emmet-vim' " Emmet
    Plugin 'gregsexton/matchtag' " Match html tags (colorize tags)
    @@ -65,11 +79,9 @@ Plugin 'alvan/vim-closetag' " Closes tag after >
    Plugin 'shawncplus/phpcomplete.vim'


    " ## Autocompletition & Snippets
    Plugin 'valloric/youcompleteme'
    " ## Docker
    Plugin 'ekalinin/dockerfile.vim'

    Plugin 'sirver/ultisnips'
    Plugin 'honza/vim-snippets'


    call vundle#end()
    @@ -80,9 +92,6 @@ filetype plugin indent on

    " # Settings

    set autoread " Reload files changed outside vim


    " ## GUI
    set title " Update the title of your window or your terminal
    set mouse=a " Enable mouse support in terminal
    @@ -106,12 +115,15 @@ set scrolloff=3 " Display at least 3 lines around you cursor

    syntax enable " Enable syntax highlighting

    set encoding=utf8 " Set enconding


    " ## Ex-mode
    set wildmode=longest:list,full " Smart tab completion from command line


    " ## Buffers
    set autoread " Reload files changed outside vim
    set hidden " Allow change buffers without saving


    @@ -210,12 +222,14 @@ let g:syntastic_check_on_wq = 0

    " ## NerdTree
    let g:NERDTreeChDirMode = 2 " Change cwd to parent node
    let NERDTreeIgnore = ['\.pyc$', '^__pycache__$'] " Ignore python cache files
    let NERDTreeRespectWildIgnore=1 " Respect the vim wildignore setting


    " ## CtrlP
    let g:ctrlp_map = '<c-p>'
    let g:ctrlp_cmd = 'CtrlP'
    let g:ctrlp_working_path_mode = 'ra'
    let g:ctrlp_working_path_mode = 'ac'
    let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard']


    @@ -253,14 +267,27 @@ let g:session_autoload="yes" " Autoload last saved session
    " ## Vimshell
    " Change prompt
    let g:vimshell_user_prompt = 'fnamemodify(getcwd(), ":~")'
    let g:vimshell_prompt = '$ '
    let g:vimshell_prompt = '$ '


    " ## Vim-Closetag
    let g:closetag_filenames = "*.html,*.xhtml,*.phtml"


    " Ultisnips
    " ## Ultisnips
    let g:UltiSnipsExpandTrigger="<c-j>"
    let g:UltiSnipsJumpForwardTrigger="<c-j>"
    let g:UltiSnipsJumpBackwardTrigger="<c-k>"


    " ## Dev-Icons
    " Show folders icons
    let g:WebDevIconsUnicodeDecorateFolderNodes = 1
    let g:DevIconsEnableFoldersOpenClose = 1

    " Adjust icons padding
    let g:WebDevIconsNerdTreeAfterGlyphPadding = ' '


    " ## Rootignore
    let g:RootIgnoreAgignore = 1 " Load wildignore from .gitignore
  5. @stsewd stsewd revised this gist Dec 10, 2016. 1 changed file with 182 additions and 122 deletions.
    304 changes: 182 additions & 122 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -1,149 +1,203 @@
    " VIM Configuration
    " Cancel the compatibility with Vi.
    " To enjoy the features of Vim.
    set nocompatible
    filetype off " required

    " set the runtime path to include Vundle and initialize
    " # Vundle Configurations
    filetype off

    " Set the runtime path to include Vundle and initialize
    set rtp+=~/.vim/bundle/Vundle.vim
    call vundle#begin()

    " Plugins
    Plugin 'VundleVim/Vundle.vim'
    Plugin 'scrooloose/nerdtree'
    Plugin 'tpope/vim-fugitive'
    Plugin 'scrooloose/syntastic'
    Plugin 'tpope/vim-surround'
    Plugin 'kien/ctrlp.vim'
    Plugin 'altercation/vim-colors-solarized'
    Plugin 'vim-airline/vim-airline'
    Plugin 'vim-airline/vim-airline-themes'
    Plugin 'airblade/vim-gitgutter'
    Plugin 'shougo/neocomplete.vim'
    Plugin 'yggdroot/indentline'
    Plugin 'jiangmiao/auto-pairs'
    Plugin 'scrooloose/nerdcommenter'
    Plugin 'matchit.zip'
    Plugin 'ervandew/supertab'

    " ## General & Utilities
    Plugin 'VundleVim/Vundle.vim' " Plugin manager
    Plugin 'scrooloose/nerdtree' " Tree explorer
    Plugin 'vim-airline/vim-airline' " Status bar & tabline

    Plugin 'xolox/vim-session' " Manage vim sessions automatically
    Plugin 'xolox/vim-misc' " Required by vim-session

    Plugin 'kien/ctrlp.vim' " Fuzzy file finder
    Plugin 'easymotion/vim-easymotion' " Move quickly on vim
    Plugin 'majutsushi/tagbar' " Display tags in a window

    Plugin 'danro/rename.vim' " Rename current open file/buffer
    Plugin 'matchit.zip' " Extend % for matching html tags
    Plugin 'tpope/vim-repeat' " Extend . for repeat scripts actions

    Plugin 'Shougo/vimproc.vim' " Interactive command execution
    Plugin 'shougo/vimshell.vim' " Open a shell on vim

    Plugin 'jeetsukumaran/vim-buffergator' " Navigate between buffers (gb)

    Plugin 'tpope/vim-dispatch' " Async vim

    Plugin 'chrisbra/nrrwrgn' " Focus & isolate a region (selected text)


    " ## Git Integration
    Plugin 'tpope/vim-fugitive' " Git wrapper for vim
    Plugin 'airblade/vim-gitgutter' " Show git diff on the numbers column


    " ## Themes & Color Schemes
    Plugin 'altercation/vim-colors-solarized' " Solarized theme
    Plugin 'vim-airline/vim-airline-themes' " Themes for airline
    " Plugin 'flazz/vim-colorschemes' " Several colorschemes


    " ## Linters & Formatters
    Plugin 'scrooloose/syntastic' " Syntax checking
    Plugin 'Chiel92/vim-autoformat' " Easy code formatting
    Plugin 'tpope/vim-surround' " Surround easily text with quotes, parentheses, etc.
    Plugin 'scrooloose/nerdcommenter' " Comment lines easily
    Plugin 'jiangmiao/auto-pairs' " Autopair quotes, parentheses, etc.


    " ## HTML
    Plugin 'mattn/emmet-vim' " Emmet
    Plugin 'gregsexton/matchtag' " Match html tags (colorize tags)
    Plugin 'othree/html5.vim' " html5 completition
    Plugin 'alvan/vim-closetag' " Closes tag after >


    " ## PHP
    Plugin 'shawncplus/phpcomplete.vim'


    " ## Autocompletition & Snippets
    Plugin 'valloric/youcompleteme'

    Plugin 'sirver/ultisnips'
    Plugin 'honza/vim-snippets'
    Plugin 'danro/rename.vim'
    Plugin 'xolox/vim-misc'
    Plugin 'xolox/vim-session'
    Plugin 'Chiel92/vim-autoformat'
    Plugin 'majutsushi/tagbar'
    Plugin 'tpope/vim-repeat'
    " vimshell
    Plugin 'Shougo/vimproc.vim'
    Plugin 'shougo/vimshell.vim'
    Plugin 'othree/html5.vim'
    Plugin 'shawncplus/phpcomplete.vim'
    Plugin 'easymotion/vim-easymotion'
    Plugin 'gregsexton/matchtag'
    Plugin 'mattn/emmet-vim'

    call vundle#end() " required
    filetype plugin indent on " required

    call vundle#end()
    filetype plugin indent on

    " -- General Settings --

    " Map <Leader> = space
    let mapleader = " "

    " -- Display
    set title " Update the title of your window or your terminal
    set number " Display line numbers
    set relativenumber " Show relative line numbers
    set cursorline " Highlight current line
    set ruler " Display cursor position
    set autoread " Reload files changed outside vim

    set scrolloff=3 " Display at least 3 lines around you cursor
    " # Settings

    set guioptions-=T " Disable the toolbar
    set guioptions-=m " Disable the menubar
    set guioptions-=r " Remove right-hand scroll bar
    set guioptions-=L " Remove left-hand scroll bar
    " Smart tab completion from command line
    set wildmode=longest:list,full
    set mouse=a " Enable mouse support in terminal
    set autoread " Reload files changed outside vim


    " -- Clipboard
    " ## GUI
    set title " Update the title of your window or your terminal
    set mouse=a " Enable mouse support in terminal

    " Copy to clipboard
    vnoremap <Leader>y "+y
    nnoremap <Leader>y "+y
    set number " Display line numbers
    set relativenumber " Show relative line numbers
    set cursorline " Highlight current line
    set ruler " Display cursor position

    " Paste from clipboard
    nnoremap <Leader>p "+p
    vnoremap <Leader>p "+p
    set guioptions-=T " Disable the toolbar
    set guioptions-=m " Disable the menubar
    set guioptions-=r " Remove right-hand scroll bar
    set guioptions-=L " Remove left-hand scroll bar

    set guifont=DejaVu\ Sans\ Mono\ for\ Powerline\ 9
    set antialias

    " -- Buffers
    set gcr=n:blinkon0 " Disable cursor blinking

    set hidden " Allow change buffers without saving
    set scrolloff=3 " Display at least 3 lines around you cursor

    " Move to the next buffer
    nnoremap <leader>l :bnext<CR>
    syntax enable " Enable syntax highlighting

    " Move to the previous buffer
    nnoremap <leader>j :bprevious<CR>

    " Close current buffer
    nnoremap <leader>q :bdelete<CR>
    " ## Ex-mode
    set wildmode=longest:list,full " Smart tab completion from command line


    " ## Buffers
    set hidden " Allow change buffers without saving


    " -- Search
    set ignorecase " Ignore case when searching
    set smartcase " If there is an uppercase in your search term
    " search case sensitive again
    set incsearch " Highlight search results when typing
    set hlsearch " Highlight search results
    " ## Search
    set ignorecase
    set smartcase

    nmap <silent> <C-n> :noh<CR> " Disable highlighting search with ctrl-n
    set incsearch " Highlight search results when typing
    set hlsearch " Highlight search results

    " -- Beep
    set visualbell " Prevent Vim from beeping
    set noerrorbells " Prevent Vim from beeping

    " Identation
    " ## Beep
    set visualbell " Prevent Vim from beeping
    set noerrorbells " Prevent Vim from beeping


    " ## Identation
    set tabstop=4
    set shiftwidth=4
    set softtabstop=4
    set shiftround
    set expandtab
    set autoindent

    " Enable syntax highlighting
    syntax enable

    " Use the light version of Solarized
    " ## Theme & Colorsheme
    let g:solarized_termcolors=256
    set background=dark
    set background=light
    colorscheme solarized
    hi clear CursorLineNr " Clear highlighting line number.
    hi clear CursorLineNr " Clear highlighting line number

    " Fonts
    set guifont=DejaVu\ Sans\ Mono\ for\ Powerline\ 9
    set antialias

    " Disable cursor blinking
    set gcr=n:blinkon0
    " ## Backup
    set backup
    " Move .swp files to tmp/
    set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
    set backupskip=/tmp/*,/private/tmp/*
    set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
    set writebackup




    " # Key-Bindings

    " Map <Leader> to space
    let mapleader = " "

    " Copy to clipboard
    vnoremap <Leader>y "+y
    nnoremap <Leader>y "+y
    " Paste from clipboard
    nnoremap <Leader>p "+p
    vnoremap <Leader>p "+p
    " Move lines with Alt key
    " Press enter/shift+enter for inserting a new line on normal mode
    nmap <S-Enter> O<Esc>
    nmap <CR> o<Esc>
    " Move lines with Alt+{jk}
    nnoremap <A-j> :m .+1<CR>==
    nnoremap <A-k> :m .-2<CR>==
    inoremap <A-j> <Esc>:m .+1<CR>==gi
    inoremap <A-k> <Esc>:m .-2<CR>==gi
    vnoremap <A-j> :m '>+1<CR>gv=gv
    vnoremap <A-k> :m '<-2<CR>gv=gv
    " Move to the next buffer
    nnoremap <leader>l :bnext<CR>
    " Move to the previous buffer
    nnoremap <leader>j :bprevious<CR>
    " Close current buffer
    nnoremap <leader>q :bdelete<CR>
    " Disable highlighting search with ctrl-n
    nmap <silent> <C-n> :noh<CR>


    " -- Plugins configs

    " Sintastic configs
    " # Plugins Settings

    " ## Sintastic
    set statusline+=%#warningmsg#
    set statusline+=%{SyntasticStatuslineFlag()}
    set statusline+=%*
    @@ -154,53 +208,59 @@ let g:syntastic_check_on_open = 1
    let g:syntastic_check_on_wq = 0


    " NerdTree
    let g:NERDTreeChDirMode = 2
    " ## NerdTree
    let g:NERDTreeChDirMode = 2 " Change cwd to parent node


    " CtrlP
    " ## CtrlP
    let g:ctrlp_map = '<c-p>'
    let g:ctrlp_cmd = 'CtrlP'
    let g:ctrlp_working_path_mode = 'ra'
    let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard']


    " GitGutter
    set updatetime=250
    " ## GitGutter
    set updatetime=250 " Update each 250 mls


    " NeoComplete
    let g:neocomplete#enable_at_startup = 1
    " ## The NerdCommenter
    let g:NERDSpaceDelims = 1 " Add spaces after comment delimiters by default
    let g:NERDTrimTrailingWhitespace = 1 "Enable trimming of trailing whitespace when uncommenting


    " The nerdcommenter
    " Add spaces after comment delimiters by default
    let g:NERDSpaceDelims = 1
    " Enable trimming of trailing whitespace when uncommenting
    let g:NERDTrimTrailingWhitespace = 1
    " ## Airline
    set laststatus=2 " Always show

    let g:airline#extensions#tabline#enabled = 1 " Show open buffers/tabs
    let g:airline#extensions#tabline#fnamemod = ':t' " Show just the filename

    " Airline
    set laststatus=2
    let g:airline#extensions#tabline#enabled = 1
    " Load Powerline font/symbols
    let g:airline_powerline_fonts = 1
    " Show just the filename
    let g:airline#extensions#tabline#fnamemod = ':t'

    " Load symbols
    if !exists('g:airline_symbols')
    let g:airline_symbols = {}
    endif


    " Ultisnips
    " Trigger configuration. Do not use <tab> for conflicts with NeoComplete
    let g:UltiSnipsExpandTrigger="<tab>"
    let g:UltiSnipsJumpForwardTrigger="<c-b>"
    let g:UltiSnipsJumpBackwardTrigger="<c-z>"
    " ## Emmet
    let g:user_emmet_leader_key='<C-Z>' " Trigger emmet with ctrl-z ,


    " ## Session
    let g:session_autosave="yes" " Autosave session
    let g:session_autoload="yes" " Autoload last saved session

    " session
    let g:session_autosave="yes"
    " let g:session_autoload="yes"

    " Vimshell
    " ## Vimshell
    " Change prompt
    let g:vimshell_user_prompt = 'fnamemodify(getcwd(), ":~")'
    let g:vimshell_prompt = '$ '


    " ## Vim-Closetag
    let g:closetag_filenames = "*.html,*.xhtml,*.phtml"


    " Ultisnips
    let g:UltiSnipsExpandTrigger="<c-j>"
    let g:UltiSnipsJumpForwardTrigger="<c-j>"
    let g:UltiSnipsJumpBackwardTrigger="<c-k>"
  6. @stsewd stsewd revised this gist Dec 6, 2016. 1 changed file with 22 additions and 2 deletions.
    24 changes: 22 additions & 2 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -36,6 +36,11 @@ Plugin 'tpope/vim-repeat'
    " vimshell
    Plugin 'Shougo/vimproc.vim'
    Plugin 'shougo/vimshell.vim'
    Plugin 'othree/html5.vim'
    Plugin 'shawncplus/phpcomplete.vim'
    Plugin 'easymotion/vim-easymotion'
    Plugin 'gregsexton/matchtag'
    Plugin 'mattn/emmet-vim'

    call vundle#end() " required
    filetype plugin indent on " required
    @@ -84,7 +89,7 @@ set hidden " Allow change buffers without saving
    nnoremap <leader>l :bnext<CR>
    " Move to the previous buffer
    nnoremap <leader>h :bprevious<CR>
    nnoremap <leader>j :bprevious<CR>
    " Close current buffer
    nnoremap <leader>q :bdelete<CR>
    @@ -116,7 +121,7 @@ syntax enable

    " Use the light version of Solarized
    let g:solarized_termcolors=256
    set background=light
    set background=dark
    colorscheme solarized
    hi clear CursorLineNr " Clear highlighting line number.

    @@ -127,6 +132,14 @@ set antialias
    " Disable cursor blinking
    set gcr=n:blinkon0

    " Move lines with Alt key
    nnoremap <A-j> :m .+1<CR>==
    nnoremap <A-k> :m .-2<CR>==
    inoremap <A-j> <Esc>:m .+1<CR>==gi
    inoremap <A-k> <Esc>:m .-2<CR>==gi
    vnoremap <A-j> :m '>+1<CR>gv=gv
    vnoremap <A-k> :m '<-2<CR>gv=gv

    " -- Plugins configs

    @@ -141,6 +154,10 @@ let g:syntastic_check_on_open = 1
    let g:syntastic_check_on_wq = 0


    " NerdTree
    let g:NERDTreeChDirMode = 2


    " CtrlP
    let g:ctrlp_map = '<c-p>'
    let g:ctrlp_cmd = 'CtrlP'
    @@ -184,3 +201,6 @@ let g:UltiSnipsJumpBackwardTrigger="<c-z>"
    " session
    let g:session_autosave="yes"
    " let g:session_autoload="yes"

    " Vimshell
    let g:vimshell_user_prompt = 'fnamemodify(getcwd(), ":~")'
  7. @stsewd stsewd revised this gist Dec 6, 2016. 1 changed file with 23 additions and 5 deletions.
    28 changes: 23 additions & 5 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -32,6 +32,10 @@ Plugin 'xolox/vim-misc'
    Plugin 'xolox/vim-session'
    Plugin 'Chiel92/vim-autoformat'
    Plugin 'majutsushi/tagbar'
    Plugin 'tpope/vim-repeat'
    " vimshell
    Plugin 'Shougo/vimproc.vim'
    Plugin 'shougo/vimshell.vim'

    call vundle#end() " required
    filetype plugin indent on " required
    @@ -60,17 +64,32 @@ set guioptions-=L " Remove left-hand scroll bar
    set wildmode=longest:list,full
    set mouse=a " Enable mouse support in terminal

    set hidden " Allow change buffers without saving

    " -- Clipboard

    " Copy to clipboard
    vnoremap <Leader>y "+y
    nnoremap <Leader>y "+y

    " Paste from clipboard
    nnoremap <Leader>p "+p
    vnoremap <Leader>p "+p

    " -- Buffers

    set hidden " Allow change buffers without saving

    " Move to the next buffer
    nnoremap <leader>l :bnext<CR>
    " Move to the previous buffer
    nnoremap <leader>h :bprevious<CR>
    " Close current buffer
    nnoremap <leader>q :bdelete<CR>

    " -- Search
    set ignorecase " Ignore case when searching
    set smartcase " If there is an uppercase in your search term
    @@ -97,12 +116,12 @@ syntax enable

    " Use the light version of Solarized
    let g:solarized_termcolors=256
    set background=dark
    set background=light
    colorscheme solarized
    hi clear CursorLineNr " Clear highlighting line number.

    " Fonts
    set guifont=DejaVu\ Sans\ Mono\ for\ Powerline\ 10
    set guifont=DejaVu\ Sans\ Mono\ for\ Powerline\ 9
    set antialias

    " Disable cursor blinking
    @@ -165,4 +184,3 @@ let g:UltiSnipsJumpBackwardTrigger="<c-z>"
    " session
    let g:session_autosave="yes"
    " let g:session_autoload="yes"

  8. @stsewd stsewd revised this gist Dec 4, 2016. 1 changed file with 8 additions and 1 deletion.
    9 changes: 8 additions & 1 deletion .vimrc
    Original file line number Diff line number Diff line change
    @@ -30,6 +30,8 @@ Plugin 'honza/vim-snippets'
    Plugin 'danro/rename.vim'
    Plugin 'xolox/vim-misc'
    Plugin 'xolox/vim-session'
    Plugin 'Chiel92/vim-autoformat'
    Plugin 'majutsushi/tagbar'

    call vundle#end() " required
    filetype plugin indent on " required
    @@ -51,13 +53,15 @@ set autoread " Reload files changed outside vim
    set scrolloff=3 " Display at least 3 lines around you cursor

    set guioptions-=T " Disable the toolbar
    set guioptions-=m " Disable the menubar
    set guioptions-=m " Disable the menubar
    set guioptions-=r " Remove right-hand scroll bar
    set guioptions-=L " Remove left-hand scroll bar
    " Smart tab completion from command line
    set wildmode=longest:list,full
    set mouse=a " Enable mouse support in terminal

    set hidden " Allow change buffers without saving

    " Copy to clipboard
    vnoremap <Leader>y "+y
    nnoremap <Leader>y "+y
    @@ -143,7 +147,10 @@ let g:NERDTrimTrailingWhitespace = 1
    set laststatus=2
    let g:airline#extensions#tabline#enabled = 1
    let g:airline_powerline_fonts = 1
    " Show just the filename
    let g:airline#extensions#tabline#fnamemod = ':t'

    " Load symbols
    if !exists('g:airline_symbols')
    let g:airline_symbols = {}
    endif
  9. @stsewd stsewd created this gist Dec 4, 2016.
    161 changes: 161 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,161 @@
    " VIM Configuration
    " Cancel the compatibility with Vi.
    " To enjoy the features of Vim.
    set nocompatible
    filetype off " required

    " set the runtime path to include Vundle and initialize
    set rtp+=~/.vim/bundle/Vundle.vim
    call vundle#begin()

    " Plugins
    Plugin 'VundleVim/Vundle.vim'
    Plugin 'scrooloose/nerdtree'
    Plugin 'tpope/vim-fugitive'
    Plugin 'scrooloose/syntastic'
    Plugin 'tpope/vim-surround'
    Plugin 'kien/ctrlp.vim'
    Plugin 'altercation/vim-colors-solarized'
    Plugin 'vim-airline/vim-airline'
    Plugin 'vim-airline/vim-airline-themes'
    Plugin 'airblade/vim-gitgutter'
    Plugin 'shougo/neocomplete.vim'
    Plugin 'yggdroot/indentline'
    Plugin 'jiangmiao/auto-pairs'
    Plugin 'scrooloose/nerdcommenter'
    Plugin 'matchit.zip'
    Plugin 'ervandew/supertab'
    Plugin 'sirver/ultisnips'
    Plugin 'honza/vim-snippets'
    Plugin 'danro/rename.vim'
    Plugin 'xolox/vim-misc'
    Plugin 'xolox/vim-session'

    call vundle#end() " required
    filetype plugin indent on " required


    " -- General Settings --

    " Map <Leader> = space
    let mapleader = " "

    " -- Display
    set title " Update the title of your window or your terminal
    set number " Display line numbers
    set relativenumber " Show relative line numbers
    set cursorline " Highlight current line
    set ruler " Display cursor position
    set autoread " Reload files changed outside vim

    set scrolloff=3 " Display at least 3 lines around you cursor

    set guioptions-=T " Disable the toolbar
    set guioptions-=m " Disable the menubar
    set guioptions-=r " Remove right-hand scroll bar
    set guioptions-=L " Remove left-hand scroll bar
    " Smart tab completion from command line
    set wildmode=longest:list,full
    set mouse=a " Enable mouse support in terminal

    " Copy to clipboard
    vnoremap <Leader>y "+y
    nnoremap <Leader>y "+y

    " Paste from clipboard
    nnoremap <Leader>p "+p
    vnoremap <Leader>p "+p
    " -- Search
    set ignorecase " Ignore case when searching
    set smartcase " If there is an uppercase in your search term
    " search case sensitive again
    set incsearch " Highlight search results when typing
    set hlsearch " Highlight search results

    nmap <silent> <C-n> :noh<CR> " Disable highlighting search with ctrl-n
    " -- Beep
    set visualbell " Prevent Vim from beeping
    set noerrorbells " Prevent Vim from beeping

    " Identation
    set tabstop=4
    set shiftwidth=4
    set softtabstop=4
    set shiftround
    set expandtab
    set autoindent

    " Enable syntax highlighting
    syntax enable

    " Use the light version of Solarized
    let g:solarized_termcolors=256
    set background=dark
    colorscheme solarized
    hi clear CursorLineNr " Clear highlighting line number.

    " Fonts
    set guifont=DejaVu\ Sans\ Mono\ for\ Powerline\ 10
    set antialias

    " Disable cursor blinking
    set gcr=n:blinkon0


    " -- Plugins configs

    " Sintastic configs
    set statusline+=%#warningmsg#
    set statusline+=%{SyntasticStatuslineFlag()}
    set statusline+=%*

    let g:syntastic_always_populate_loc_list = 1
    let g:syntastic_auto_loc_list = 1
    let g:syntastic_check_on_open = 1
    let g:syntastic_check_on_wq = 0


    " CtrlP
    let g:ctrlp_map = '<c-p>'
    let g:ctrlp_cmd = 'CtrlP'
    let g:ctrlp_working_path_mode = 'ra'


    " GitGutter
    set updatetime=250


    " NeoComplete
    let g:neocomplete#enable_at_startup = 1


    " The nerdcommenter
    " Add spaces after comment delimiters by default
    let g:NERDSpaceDelims = 1
    " Enable trimming of trailing whitespace when uncommenting
    let g:NERDTrimTrailingWhitespace = 1


    " Airline
    set laststatus=2
    let g:airline#extensions#tabline#enabled = 1
    let g:airline_powerline_fonts = 1

    if !exists('g:airline_symbols')
    let g:airline_symbols = {}
    endif


    " Ultisnips
    " Trigger configuration. Do not use <tab> for conflicts with NeoComplete
    let g:UltiSnipsExpandTrigger="<tab>"
    let g:UltiSnipsJumpForwardTrigger="<c-b>"
    let g:UltiSnipsJumpBackwardTrigger="<c-z>"

    " session
    let g:session_autosave="yes"
    " let g:session_autoload="yes"