mirror of
https://github.com/neoromantique/dotfiles.git
synced 2026-03-13 21:53:20 +03:00
upd
This commit is contained in:
64
.vimrc
64
.vimrc
@@ -9,18 +9,58 @@
|
|||||||
" put this line first in ~/.vimrc
|
" put this line first in ~/.vimrc
|
||||||
set nocompatible | filetype indent plugin on | syn on
|
set nocompatible | filetype indent plugin on | syn on
|
||||||
|
|
||||||
|
|
||||||
set runtimepath^=~/.vim/bundle/ctrlp.vim
|
set runtimepath^=~/.vim/bundle/ctrlp.vim
|
||||||
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard']
|
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard']
|
||||||
|
|
||||||
|
set rtp+=~/.vim/bundle/Vundle.vim
|
||||||
|
call vundle#begin()
|
||||||
|
" let Vundle manage Vundle, required
|
||||||
|
Plugin 'VundleVim/Vundle.vim'
|
||||||
|
Plugin 'preservim/nerdtree'
|
||||||
|
Plugin 'pangloss/vim-javascript'
|
||||||
|
Plugin 'nathanaelkane/vim-indent-guides'
|
||||||
|
Plugin 'jelera/vim-javascript-syntax'
|
||||||
|
Plugin 'Xuyuanp/nerdtree-git-plugin'
|
||||||
|
Plugin 'ryanoasis/vim-devicons'
|
||||||
|
Plugin 'Raimondi/delimitMate'
|
||||||
|
Plugin 'scrooloose/syntastic'
|
||||||
|
Plugin 'marijnh/tern_for_vim'
|
||||||
|
Plugin 'Valloric/YouCompleteMe'
|
||||||
|
Plugin 'digitaltoad/vim-pug'
|
||||||
|
Plugin 'ekalinin/Dockerfile.vim'
|
||||||
|
Plugin 'godlygeek/tabular'
|
||||||
|
Plugin 'airblade/vim-gitgutter'
|
||||||
|
Plugin 'tpope/vim-fugitive'
|
||||||
|
Plugin 'vim-airline/vim-airline'
|
||||||
|
Plugin 'vimwiki/vimwiki'
|
||||||
|
Plugin 'dNitro/vim-pug-complete'
|
||||||
|
Plugin 'othree/html5.vim'
|
||||||
|
call vundle#end()
|
||||||
|
|
||||||
|
imap <C-c> <CR><Esc>O
|
||||||
|
|
||||||
|
|
||||||
|
" This does what it says on the tin. It will check your file on open too, not
|
||||||
|
" just on save.
|
||||||
|
" " You might not want this, so just leave it out if you don't.
|
||||||
|
let g:syntastic_check_on_open=1
|
||||||
|
|
||||||
|
let g:ycm_add_preview_to_completeopt=0
|
||||||
|
let g:ycm_confirm_extra_conf=0
|
||||||
|
set completeopt-=preview
|
||||||
|
|
||||||
|
" Scrooloose/syntastic settings
|
||||||
|
let g:syntastic_error_symbol = '✘'
|
||||||
|
let g:syntastic_warning_symbol = "▲"
|
||||||
|
|
||||||
|
|
||||||
" Turn syntax highlight on.
|
" Turn syntax highlight on.
|
||||||
syntax on
|
syntax on
|
||||||
|
|
||||||
"for future use.
|
"for future use.
|
||||||
let mapleader = ","
|
let mapleader = ","
|
||||||
|
|
||||||
"Enable Pathongen
|
|
||||||
execute pathogen#infect()
|
|
||||||
|
|
||||||
"Enable Airline
|
"Enable Airline
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
let g:airline_powerline_fonts = 1
|
let g:airline_powerline_fonts = 1
|
||||||
@@ -36,6 +76,20 @@ set backupdir=~/.vim/backup
|
|||||||
set directory=~/.vim/tmp
|
set directory=~/.vim/tmp
|
||||||
set autochdir
|
set autochdir
|
||||||
|
|
||||||
|
|
||||||
|
let g:NERDTreeGitStatusIndicatorMapCustom = {
|
||||||
|
\ 'Modified' :'✹',
|
||||||
|
\ 'Staged' :'✚',
|
||||||
|
\ 'Untracked' :'✭',
|
||||||
|
\ 'Renamed' :'➜',
|
||||||
|
\ 'Unmerged' :'═',
|
||||||
|
\ 'Deleted' :'✖',
|
||||||
|
\ 'Dirty' :'✗',
|
||||||
|
\ 'Ignored' :'☒',
|
||||||
|
\ 'Clean' :'✔︎',
|
||||||
|
\ 'Unknown' :'?',
|
||||||
|
\ }
|
||||||
|
|
||||||
" Make Vim highlight current line
|
" Make Vim highlight current line
|
||||||
set cul
|
set cul
|
||||||
|
|
||||||
@@ -89,6 +143,7 @@ autocmd FileType vimwiki map c :call ToggleCalendar()<CR>
|
|||||||
" Shell
|
" Shell
|
||||||
autocmd FileType sh setlocal expandtab shiftwidth=4 tabstop=8 softtabstop=4
|
autocmd FileType sh setlocal expandtab shiftwidth=4 tabstop=8 softtabstop=4
|
||||||
|
|
||||||
|
" Python
|
||||||
autocmd FileType python setlocal tabstop=1 shiftwidth=1 expandtab number
|
autocmd FileType python setlocal tabstop=1 shiftwidth=1 expandtab number
|
||||||
|
|
||||||
" Ruby
|
" Ruby
|
||||||
@@ -116,7 +171,8 @@ let javascript_enable_domhtmlcss=1
|
|||||||
let g:javascript_plugin_jsdoc = 1
|
let g:javascript_plugin_jsdoc = 1
|
||||||
let g:javascript_plugin_ngdoc = 1
|
let g:javascript_plugin_ngdoc = 1
|
||||||
|
|
||||||
filetype indent on
|
filetype plugin indent on
|
||||||
|
|
||||||
set autoindent
|
set autoindent
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -85,6 +85,9 @@ bindsym $mod+Shift+Down move down
|
|||||||
bindsym $mod+Shift+Up move up
|
bindsym $mod+Shift+Up move up
|
||||||
bindsym $mod+Shift+Right move right
|
bindsym $mod+Shift+Right move right
|
||||||
|
|
||||||
|
bindsym $mod+F11 move workspace to output left
|
||||||
|
bindsym $mod+F12 move workspace to output right
|
||||||
|
|
||||||
# split in horizontal orientation
|
# split in horizontal orientation
|
||||||
bindsym F8 split h
|
bindsym F8 split h
|
||||||
|
|
||||||
|
|||||||
2
setup.sh
2
setup.sh
@@ -87,8 +87,6 @@ mkdir -p ~/.vim/autoload ~/.vim/bundle && \
|
|||||||
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
|
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
|
||||||
|
|
||||||
mkdir -p ~/.vim/plugin
|
mkdir -p ~/.vim/plugin
|
||||||
|
|
||||||
git clone https://github.com/vimwiki/vimwiki.git ~/.vim/bundle/vinwiki
|
|
||||||
git clone git://github.com/mattn/calendar-vim ~/.vim/bundle/calendar-vim
|
git clone git://github.com/mattn/calendar-vim ~/.vim/bundle/calendar-vim
|
||||||
|
|
||||||
wget "https://www.vim.org/scripts/download_script.php?src_id=26272" -O ~/.vim/plugin/switch.vim
|
wget "https://www.vim.org/scripts/download_script.php?src_id=26272" -O ~/.vim/plugin/switch.vim
|
||||||
|
|||||||
Reference in New Issue
Block a user