Created
December 16, 2017 16:31
-
-
Save greister/067e94041b8b027dd1e9d9fc6844a7d1 to your computer and use it in GitHub Desktop.
Revisions
-
synasius revised this gist
Mar 22, 2016 . 1 changed file with 10 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -40,7 +40,8 @@ Plug 'godlygeek/tabular' Plug 'tpope/vim-repeat' " better statusline Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' " git management plugin Plug 'tpope/vim-fugitive' @@ -186,13 +187,18 @@ let g:ycm_filetype_specific_completion_to_disable = { \ 'python': 1 \} let g:ycm_rust_src_path='/home/synasius/workspace/rust/src/' let g:ycm_complete_in_comments = 1 let g:ycm_complete_in_strings = 1 let g:ycm_use_ultisnips_completer = 1 " Default 1, just ensure let g:ycm_seed_identifiers_with_syntax = 1 " Completion for programming language's " }}} " UltiSnips {{{ let g:UltiSnipsExpandTrigger = "<c-j>" let g:UltiSnipsJumpForwardTrigger = "<c-j>" let g:UltiSnipsJumpBackwardTrigger = "<c-p>" let g:UltiSnipsListSnippets = "<c-k>" "List possible snippets based on current file let g:UltiSnipsUsePythonVersion = 2 " }}} -
synasius revised this gist
Jan 13, 2016 . 1 changed file with 14 additions and 15 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,22 +14,25 @@ Plug 'rust-lang/rust.vim' Plug 'tikhomirov/vim-glsl' " auto complete Plug 'Valloric/YouCompleteMe', { 'do': './install.py --clang-completer --racer-completer --omnisharp-completer --tern-completer' } Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' } "Plug 'fatih/vim-go' Plug 'nvie/vim-flake8' Plug 'davidhalter/jedi-vim' Plug 'ervandew/supertab' Plug 'SirVer/ultisnips' Plug 'honza/vim-snippets' " navigation/search file Plug 'scrooloose/nerdtree' Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } Plug 'rking/ag.vim' Plug 'dkprice/vim-easygrep' " note Plug 'xolox/vim-misc' Plug 'xolox/vim-notes' " editing Plug 'scrooloose/nerdcommenter' Plug 'tpope/vim-surround' @@ -49,7 +52,7 @@ call plug#end() " Colors {{{ let $NVIM_TUI_ENABLE_TRUE_COLOR=1 syntax enable " enable syntax processing colorscheme base16-default set background=dark " }}} Colors @@ -147,6 +150,9 @@ nnoremap <c-h> <c-w><c-h> " fast header source switch map <F4> :e %:p:s,.h$,.X123X,:s,.cpp$,.h,:s,.X123X$,.cpp,<CR> " fzf nnoremap <c-p> :FZF<CR> " NERDTree mappings {{{ map <C-n> :NERDTreeToggle<CR> " }}} @@ -173,15 +179,13 @@ let g:airline#extensions#tabline#buffer_nr_show = 1 " }}} " YCM {{{ "let g:ycm_server_keep_logfiles = 1 "let g:ycm_server_log_level = 'debug' let g:ycm_filetype_specific_completion_to_disable = { \ 'gitcommit': 1, \ 'python': 1 \} let g:ycm_rust_src_path='/home/synasius/workspace/rust/src/' " }}} @@ -192,11 +196,6 @@ let g:UltiSnipsJumpBackwardTrigger="<leader>z" let g:UltiSnipsUsePythonVersion = 2 " }}} " Flake8 {{{ let g:flake8_show_in_gutter=1 let g:flake8_show_in_file=1 -
synasius renamed this gist
Dec 7, 2015 . 1 changed file with 53 additions and 45 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,59 +1,50 @@ " vim:foldmethod=marker:foldlevel=0 " vim-plug {{{ call plug#begin() " color scheme Plug 'chriskempson/base16-vim' " syntax highlighting Plug 'peterhoeg/vim-qml' Plug 'artoj/qmake-syntax-vim' Plug 'octol/vim-cpp-enhanced-highlight' Plug 'rust-lang/rust.vim' Plug 'tikhomirov/vim-glsl' " auto complete Plug 'Valloric/YouCompleteMe', { 'do': './install.py --clang-completer' } Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' } Plug 'fatih/vim-go' Plug 'nvie/vim-flake8' Plug 'davidhalter/jedi-vim' Plug 'ervandew/supertab' Plug 'SirVer/ultisnips' Plug 'honza/vim-snippets' Plug 'racer-rust/vim-racer' " navigation/search file Plug 'scrooloose/nerdtree' Plug 'kien/ctrlp.vim' Plug 'rking/ag.vim' Plug 'dkprice/vim-easygrep' " editing Plug 'scrooloose/nerdcommenter' Plug 'tpope/vim-surround' Plug 'godlygeek/tabular' Plug 'tpope/vim-repeat' " better statusline Plug 'bling/vim-airline' " git management plugin Plug 'tpope/vim-fugitive' Plug 'airblade/vim-gitgutter' call plug#end() " }}} vim-plug " Colors {{{ let $NVIM_TUI_ENABLE_TRUE_COLOR=1 @@ -71,6 +62,10 @@ set autoindent set copyindent " copy indent from the previous line " }}} Spaces & Tabs " Clipboard {{{ set clipboard+=unnamedplus " }}} Clipboard " UI Config {{{ set hidden set number " show line number @@ -81,7 +76,7 @@ set showmatch " highlight matching brace set laststatus=2 " window will always have a status line set nobackup set noswapfile let &colorcolumn="80,".join(range(119,999),",") " }}} UI Config " Search {{{ @@ -180,19 +175,33 @@ let g:airline#extensions#tabline#buffer_nr_show = 1 " YCM {{{ let g:ycm_server_keep_logfiles = 1 let g:ycm_server_log_level = 'debug' "let g:ycm_filetype_blacklist = { "\ 'python': 1 "\} let g:ycm_filetype_specific_completion_to_disable = { \ 'gitcommit': 1, \ 'python': 1 \} " }}} " UltiSnips {{{ let g:UltiSnipsExpandTrigger="<leader>e" let g:UltiSnipsJumpForwardTrigger="<leader>b" let g:UltiSnipsJumpBackwardTrigger="<leader>z" let g:UltiSnipsUsePythonVersion = 2 " }}} " Racer {{{ let g:racer_cmd = "~/workspace/racer/target/release/" let $RUST_SRC_PATH="/home/synasius/workspace/rust/src/" " }}} " Flake8 {{{ let g:flake8_show_in_gutter=1 let g:flake8_show_in_file=1 " }}} " Functions {{{ " trailing whitespace match ErrorMsg '\s\+$' @@ -201,4 +210,3 @@ function! TrimWhiteSpace() endfunction autocmd BufWritePre * :call TrimWhiteSpace() " }}} -
synasius revised this gist
Aug 26, 2015 . 1 changed file with 0 additions and 210 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,210 +0,0 @@ -
synasius revised this gist
Aug 26, 2015 . No changes.There are no files selected for viewing
-
synasius revised this gist
Aug 26, 2015 . 1 changed file with 204 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,204 @@ " vim:foldmethod=marker:foldlevel=0 " Vundle {{{ filetype off " required " set the runtime path to include Vundle and initialize set rtp+=~/.nvim/bundle/Vundle.vim call vundle#begin('~/.nvim/bundle') " alternatively, pass a path where Vundle should install plugin "call vundle#begin('~/some/path/here') Plugin 'gmarik/Vundle.vim' " let Vundle manage Vundle, required " color scheme Plugin 'chriskempson/base16-vim' " syntax highlighting Plugin 'peterhoeg/vim-qml' Plugin 'artoj/qmake-syntax-vim' Plugin 'octol/vim-cpp-enhanced-highlight' Plugin 'rust-lang/rust.vim' Plugin 'tikhomirov/vim-glsl' " auto complete Plugin 'Valloric/YouCompleteMe' "Plugin 'rdnetto/YCM-Generator' Plugin 'fatih/vim-go' Plugin 'davidhalter/jedi-vim' Plugin 'ervandew/supertab' Plugin 'SirVer/ultisnips' Plugin 'honza/vim-snippets' Plugin 'phildawes/racer' " navigation/search file Plugin 'scrooloose/nerdtree' Plugin 'kien/ctrlp.vim' Plugin 'rking/ag.vim' Plugin 'dkprice/vim-easygrep' " editing Plugin 'scrooloose/nerdcommenter' Plugin 'tpope/vim-surround' Plugin 'godlygeek/tabular' Plugin 'tpope/vim-repeat' " better statusline Plugin 'bling/vim-airline' " git management plugin Plugin 'tpope/vim-fugitive' Plugin 'airblade/vim-gitgutter' " All of your Plugins must be added before the following line call vundle#end() " required filetype plugin indent on " required " }}} Vundle " Colors {{{ let $NVIM_TUI_ENABLE_TRUE_COLOR=1 syntax enable " enable syntax processing colorscheme base16-ocean set background=dark " }}} Colors " Spaces & Tabs {{{ set tabstop=4 " number of visual spaces per TAB set softtabstop=4 " number of spaces in tab when editing set shiftwidth=4 " number of spaces to use for autoindent set expandtab " tabs are space set autoindent set copyindent " copy indent from the previous line " }}} Spaces & Tabs " UI Config {{{ set hidden set number " show line number set showcmd " show command in bottom bar set cursorline " highlight current line set wildmenu " visual autocomplete for command menu set showmatch " highlight matching brace set laststatus=2 " window will always have a status line set nobackup set noswapfile let &colorcolumn="80,".join(range(100,999),",") " }}} UI Config " Search {{{ set incsearch " search as characters are entered set hlsearch " highlight matche set ignorecase " ignore case when searching set smartcase " ignore case if search pattern is lower case " case-sensitive otherwise " set Ag as the grep command if executable('ag') " Note we extract the column as well as the file and line number set grepprg=ag\ --nogroup\ --nocolor\ --column set grepformat=%f:%l:%c%m endif " }}} Search " Folding {{{ set foldenable set foldlevelstart=10 " default folding level when buffer is opened set foldnestmax=10 " maximum nested fold set foldmethod=syntax " fold based on indentation " }}} Folding " Leader & Mappings {{{ let mapleader="," " leader is comma " edit/reload vimrc nmap <leader>ev :e $MYVIMRC<CR> nmap <leader>sv :so $MYVIMRC<CR> " better ESC inoremap jj <esc> " fast save and close nmap <leader>w :w<CR> nmap <leader>x :x<CR> nmap <leader>q :q<CR> " insert blank line before current line without leaving insert mode imap <leader>o <c-o><s-o> " move up/down consider wrapped lines nnoremap j gj nnoremap k gk " fix indentation nnoremap <leader>i mzgg=G`z<CR> " turn off search highlights nnoremap <leader><space> :nohlsearch<CR> " move through grep results nmap <silent> <right> :cnext<CR> nmap <silent> <left> :cprev<CR> " buffers nnoremap <tab> :bn<CR> nnoremap <s-tab> :bp<CR> nnoremap <leader>bd :bd<CR> " split navigation nnoremap <c-j> <c-w><c-j> nnoremap <c-k> <c-w><c-k> nnoremap <c-l> <c-w><c-l> nnoremap <c-h> <c-w><c-h> " fast header source switch map <F4> :e %:p:s,.h$,.X123X,:s,.cpp$,.h,:s,.X123X$,.cpp,<CR> " NERDTree mappings {{{ map <C-n> :NERDTreeToggle<CR> " }}} " YCM mappings {{{ nnoremap <leader>g :YcmCompleter GoTo<CR> " }}} " }}} " NERDTree {{{ let NERDTreeShowHidden=1 let NERDTreeIgnore = ['\.pyc$', '__pycache__'] " }}} " Cpp Enhanced Highlighting {{{ let g:cpp_class_scope_highlight = 1 " }}} " Airline {{{ let g:airline_powerline_fonts = 1 let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#buffer_nr_show = 1 " }}} " YCM {{{ let g:ycm_server_keep_logfiles = 1 let g:ycm_server_log_level = 'debug' let g:ycm_filetype_blacklist = { \ 'python': 1 \} let g:ycm_filetype_specific_completion_to_disable = { \ 'gitcommit': 1 \} " }}} " Racer {{{ let $RUST_SRC_PATH="/home/synasius/workspace/rust/src/" " }}} " Functions {{{ " trailing whitespace match ErrorMsg '\s\+$' function! TrimWhiteSpace() %s/\s\+$//e endfunction autocmd BufWritePre * :call TrimWhiteSpace() " }}} -
synasius revised this gist
Aug 19, 2015 . 1 changed file with 135 additions and 54 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,129 +1,210 @@ " vim:foldmethod=marker:foldlevel=0 " Vundle {{{ set nocompatible " be iMproved, required filetype off " required " set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() " alternatively, pass a path where Vundle should install plugin "call vundle#begin('~/some/path/here') Plugin 'gmarik/Vundle.vim' " let Vundle manage Vundle, required " color scheme Plugin 'chriskempson/base16-vim' " syntax highlighting Plugin 'peterhoeg/vim-qml' Plugin 'artoj/qmake-syntax-vim' Plugin 'octol/vim-cpp-enhanced-highlight' Plugin 'rust-lang/rust.vim' Plugin 'tikhomirov/vim-glsl' " auto complete Plugin 'Valloric/YouCompleteMe' Plugin 'rdnetto/YCM-Generator' "Plugin 'davidhalter/jedi-vim' Plugin 'SirVer/ultisnips' Plugin 'honza/vim-snippets' Plugin 'phildawes/racer' " navigation/search file Plugin 'scrooloose/nerdtree' Plugin 'kien/ctrlp.vim' Plugin 'rking/ag.vim' Plugin 'dkprice/vim-easygrep' " editing Plugin 'scrooloose/nerdcommenter' Plugin 'tpope/vim-surround' Plugin 'godlygeek/tabular' Plugin 'tpope/vim-repeat' " better statusline Plugin 'bling/vim-airline' " git management plugin Plugin 'tpope/vim-fugitive' Plugin 'airblade/vim-gitgutter' " notes Plugin 'xolox/vim-misc' Plugin 'xolox/vim-notes' " All of your Plugins must be added before the following line call vundle#end() " required filetype plugin indent on " required " }}} Vundle " Colors {{{ syntax enable " enable syntax processing set background=dark colorscheme base16-default let base16colorspace=256 set t_Co=256 " }}} Colors " Spaces & Tabs {{{ set tabstop=4 " number of visual spaces per TAB set softtabstop=4 " number of spaces in tab when editing set shiftwidth=4 " number of spaces to use for autoindent set expandtab " tabs are space set autoindent set copyindent " copy indent from the previous line " }}} Spaces & Tabs " UI Config {{{ set hidden set number " show line number set showcmd " show command in bottom bar set cursorline " highlight current line set wildmenu " visual autocomplete for command menu set showmatch " highlight matching brace set laststatus=2 " window will always have a status line set nobackup set noswapfile " }}} UI Config " Search {{{ set incsearch " search as characters are entered set hlsearch " highlight matche set ignorecase " ignore case when searching set smartcase " ignore case if search pattern is lower case " case-sensitive otherwise " set Ag as the grep command if executable('ag') " Note we extract the column as well as the file and line number set grepprg=ag\ --nogroup\ --nocolor\ --column set grepformat=%f:%l:%c%m endif " }}} Search " Folding {{{ set foldenable set foldlevelstart=10 " default folding level when buffer is opened set foldnestmax=10 " maximum nested fold set foldmethod=syntax " fold based on indentation " }}} Folding " Leader & Mappings {{{ let mapleader="," " leader is comma " edit/reload vimrc nmap <leader>ev :e $MYVIMRC<CR> nmap <leader>sv :so $MYVIMRC<CR> " better ESC inoremap jj <esc> " fast save and close nmap <leader>w :w<CR> nmap <leader>x :x<CR> nmap <leader>q :q<CR> " insert blank line before current line without leaving insert mode imap <leader>o <c-o><s-o> " move up/down consider wrapped lines nnoremap j gj nnoremap k gk " fix indentation nnoremap <leader>i mzgg=G`z<CR> " turn off search highlights nnoremap <leader><space> :nohlsearch<CR> " move through grep results nmap <silent> <right> :cnext<CR> nmap <silent> <left> :cprev<CR> " buffers nnoremap <tab> :bn<CR> nnoremap <s-tab> :bp<CR> nnoremap <leader>bd :bd<CR> " split navigation nnoremap <c-j> <c-w><c-j> nnoremap <c-k> <c-w><c-k> nnoremap <c-l> <c-w><c-l> nnoremap <c-h> <c-w><c-h> " fast header source switch map <F4> :e %:p:s,.h$,.X123X,:s,.cpp$,.h,:s,.X123X$,.cpp,<CR> " YCM mappings {{{ nnoremap <leader>g :YcmCompleter GoTo<CR> " }}} " NERDTree mappings {{{ map <C-n> :NERDTreeToggle<CR> " }}} " }}} " NERDTree {{{ let NERDTreeShowHidden=1 let NERDTreeIgnore = ['\.pyc$', '__pycache__'] " }}} " YCM {{{ let g:ycm_server_keep_logfiles = 1 let g:ycm_server_log_level = 'debug' let g:ycm_filetype_specific_completion_to_disable = { \ 'gitcommit': 1 \} " }}} " UltiSnips {{{ let g:UltiSnipsExpandTrigger="<leader>e" let g:UltiSnipsJumpForwardTrigger="<leader>b" let g:UltiSnipsJumpBackwardTrigger="<leader>z" " }}} " Cpp Enhanced Highlighting {{{ let g:cpp_class_scope_highlight = 1 " }}} " Airline {{{ let g:airline_powerline_fonts = 1 let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#buffer_nr_show = 1 " }}} " Racer {{{ let $RUST_SRC_PATH="/home/synasius/workspace/rust/src/" " }}} " Functions {{{ " trailing whitespace match ErrorMsg '\s\+$' function! TrimWhiteSpace() %s/\s\+$//e endfunction autocmd BufWritePre * :call TrimWhiteSpace() " }}} -
synasius created this gist
Mar 19, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,129 @@ """""""""" " Vundle " """""""""" set nocompatible " be iMproved, required filetype off " required " set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() " alternatively, pass a path where Vundle should install plugins "call vundle#begin('~/some/path/here') Plugin 'gmarik/Vundle.vim' " let Vundle manage Vundle, required " color schemes Plugin 'Solarized' Plugin 'Zenburn' Plugin 'tomasr/molokai' Plugin 'chriskempson/base16-vim' " syntax highlighting Plugin 'peterhoeg/vim-qml' Plugin 'octol/vim-cpp-enhanced-highlight' " auto complete Plugin 'Valloric/YouCompleteMe' Plugin 'SirVer/ultisnips' Plugin 'honza/vim-snippets' " navigation/search files Plugin 'scrooloose/nerdtree' Plugin 'kien/ctrlp.vim' " editing Plugin 'scrooloose/nerdcommenter' Plugin 'tpope/vim-surround' Plugin 'Raimondi/delimitMate' " better statusline Plugin 'bling/vim-airline' " git management plugins Plugin 'tpope/vim-fugitive' Plugin 'airblade/vim-gitgutter' " All of your Plugins must be added before the following line call vundle#end() " required filetype plugin indent on " required """""""""" " Colors " """""""""" syntax enable " enable syntax processing set background=dark colorscheme base16-default let base16colorspace=256 set t_Co=256 """"""""""""""""" " Spaces & Tabs " """"""""""""""""" set tabstop=4 " number of visual spaces per TAB set softtabstop=4 " number of spaces in tab when editing set shiftwidth=4 " number of spaces to use for autoindent set expandtab " tabs are spaces set cino=(0 " align function arg to beginning of parenthesis """"""""""""" " UI Config " """"""""""""" set number " show line numbers set showcmd " show command in bottom bar set cursorline " highlight current line filetype indent on " load filetype-specific indent files set wildmenu " visual autocomplete for command menu set showmatch " highlight matching braces set laststatus=2 " window will always have a status line """""""""" " Search " """""""""" set incsearch " search as characters are entered set hlsearch " highlight matches """""""""" " Leader " """""""""" let mapleader="," " leader is comma " fix indentation nnoremap <leader>i mzgg=G`z<CR> nnoremap <leader>g :YcmCompleter GoTo<CR> nnoremap <tab> :bn<CR> nnoremap <s-tab> :bp<CR> """"""" " YCM " """"""" let g:ycm_server_keep_logfiles = 1 let g:ycm_server_log_level = 'debug' """"""""""""" " UltiSnips " """"""""""""" let g:UltiSnipsExpandTrigger="<leader>e" let g:UltiSnipsJumpForwardTrigger="<leader>b" let g:UltiSnipsJumpBackwardTrigger="<leader>z" """"""""""""""""""""""""""""" " cpp enhanced highlighting " """"""""""""""""""""""""""""" let g:cpp_class_scope_highlight = 1 """"""""""" " Airline " """"""""""" let g:airline_powerline_fonts = 1 let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#buffer_nr_show = 1