mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-07 08:05:10 +01:00
Compare commits
4 Commits
607d89e694
...
051cf196b1
| Author | SHA1 | Date | |
|---|---|---|---|
| 051cf196b1 | |||
| bdac14c102 | |||
| 4a347a4ee1 | |||
| 534e792c0f |
28
.vimrc
28
.vimrc
@@ -37,6 +37,7 @@ nmap <F8> :TagbarToggle<CR>
|
|||||||
" looking result
|
" looking result
|
||||||
Plugin 'vim-airline/vim-airline'
|
Plugin 'vim-airline/vim-airline'
|
||||||
Plugin 'vim-airline/vim-airline-themes'
|
Plugin 'vim-airline/vim-airline-themes'
|
||||||
|
let g:airline_theme = "hybrid"
|
||||||
" Disable showing current function in airline
|
" Disable showing current function in airline
|
||||||
let g:airline#extensions#tagbar#enabled = 0
|
let g:airline#extensions#tagbar#enabled = 0
|
||||||
" Better showing of open buffers (open files)
|
" Better showing of open buffers (open files)
|
||||||
@@ -76,7 +77,7 @@ nnoremap <space>gpl :Dispatch! git pull<CR>
|
|||||||
" set of defaults that (hopefully) everyone can agree on.
|
" set of defaults that (hopefully) everyone can agree on.
|
||||||
Plugin 'tpope/vim-sensible'
|
Plugin 'tpope/vim-sensible'
|
||||||
" Nice colour scheme
|
" Nice colour scheme
|
||||||
Plugin 'fenetikm/falcon'
|
Plugin 'kristijanhusak/vim-hybrid-material'
|
||||||
" Quick file system tree, mapped to Ctrl+n for quick toggle
|
" Quick file system tree, mapped to Ctrl+n for quick toggle
|
||||||
Plugin 'scrooloose/nerdtree'
|
Plugin 'scrooloose/nerdtree'
|
||||||
map <C-n> :NERDTreeToggle<CR>
|
map <C-n> :NERDTreeToggle<CR>
|
||||||
@@ -275,6 +276,12 @@ let g:indentLine_char = '┊'
|
|||||||
" Colour-match brackets
|
" Colour-match brackets
|
||||||
Plugin 'luochen1990/rainbow'
|
Plugin 'luochen1990/rainbow'
|
||||||
let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowToggle
|
let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowToggle
|
||||||
|
" Do not use rainbow parentheses in these file types:
|
||||||
|
let g:rainbow_conf = {
|
||||||
|
\ 'separately': {
|
||||||
|
\ 'todo': 0
|
||||||
|
\ },
|
||||||
|
\}
|
||||||
|
|
||||||
" Python virtualenv support
|
" Python virtualenv support
|
||||||
"Plugin 'jmcantrell/vim-virtualenv'
|
"Plugin 'jmcantrell/vim-virtualenv'
|
||||||
@@ -289,7 +296,7 @@ let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowTo
|
|||||||
Plugin 'davidhalter/jedi-vim'
|
Plugin 'davidhalter/jedi-vim'
|
||||||
"let g:jedi#force_py_version = 2
|
"let g:jedi#force_py_version = 2
|
||||||
|
|
||||||
" For example in termux, ycm does not want to compile, don't load it there
|
" Even though in termux, ycm now compiles, one might want to not load it there
|
||||||
" with ~/.dot_no_ycm
|
" with ~/.dot_no_ycm
|
||||||
let skip_ycm=fnamemodify(expand("$MYVIMRC"), ":p:h") . "/.dot_no_ycm"
|
let skip_ycm=fnamemodify(expand("$MYVIMRC"), ":p:h") . "/.dot_no_ycm"
|
||||||
if !filereadable(skip_ycm) " Only load YouCompleteMe if ~/.dot_no_ycm does not exist
|
if !filereadable(skip_ycm) " Only load YouCompleteMe if ~/.dot_no_ycm does not exist
|
||||||
@@ -298,7 +305,7 @@ if !filereadable(skip_ycm) " Only load YouCompleteMe if ~/.dot_no_ycm does not
|
|||||||
" sudo apt-get install python-dev
|
" sudo apt-get install python-dev
|
||||||
" cd ~/.vim/bundle/YouCompleteMe
|
" cd ~/.vim/bundle/YouCompleteMe
|
||||||
" ./install.py # For C-style languages: ./install.py --clang-completer
|
" ./install.py # For C-style languages: ./install.py --clang-completer
|
||||||
Plugin 'Valloric/YouCompleteMe'
|
Plugin 'ycm-core/YouCompleteMe'
|
||||||
" YouCompleteMe interpreter version (should be the same as what YCM was
|
" YouCompleteMe interpreter version (should be the same as what YCM was
|
||||||
" compiled with):
|
" compiled with):
|
||||||
if filereadable('/data/data/com.termux/files/usr/bin/python3')
|
if filereadable('/data/data/com.termux/files/usr/bin/python3')
|
||||||
@@ -378,12 +385,12 @@ let g:ale_linters = {
|
|||||||
|
|
||||||
|
|
||||||
" Handy Markdown stuff
|
" Handy Markdown stuff
|
||||||
"Plugin 'tpope/vim-markdown'
|
|
||||||
Plugin 'godlygeek/tabular'
|
|
||||||
Plugin 'plasticboy/vim-markdown'
|
|
||||||
" Do not fold markdown files by default
|
" Do not fold markdown files by default
|
||||||
let g:vim_markdown_folding_disabled = 1
|
let g:vim_markdown_folding_disabled = 1
|
||||||
set nofoldenable
|
set nofoldenable
|
||||||
|
let g:vim_markdown_conceal = 0
|
||||||
|
Plugin 'godlygeek/tabular'
|
||||||
|
Plugin 'plasticboy/vim-markdown'
|
||||||
" Use filetype name as fenced code block languages for syntax highlighting
|
" Use filetype name as fenced code block languages for syntax highlighting
|
||||||
let g:vim_markdown_fenced_languages = ['c++=cpp', 'viml=vim', 'bash=sh', 'ini=dosini', 'python=python']
|
let g:vim_markdown_fenced_languages = ['c++=cpp', 'viml=vim', 'bash=sh', 'ini=dosini', 'python=python']
|
||||||
|
|
||||||
@@ -514,9 +521,12 @@ set cryptmethod=blowfish2
|
|||||||
|
|
||||||
" Ensure 256 colour support if the terminal supports it
|
" Ensure 256 colour support if the terminal supports it
|
||||||
if &term == "xterm" || &term == "xterm-256color" || &term == "screen-bce" || &term == "screen-256color" || &term == "screen" || &term == "tmux-256color-italic"
|
if &term == "xterm" || &term == "xterm-256color" || &term == "screen-bce" || &term == "screen-256color" || &term == "screen" || &term == "tmux-256color-italic"
|
||||||
colorscheme falcon
|
|
||||||
" Ignore the background setting, as falcon's dark blue is a bit much IMHO
|
set background=dark
|
||||||
hi Normal guibg=NONE ctermbg=NONE
|
let g:enable_bold_font = 1
|
||||||
|
let g:enable_italic_font = 1
|
||||||
|
let g:hybrid_transparent_background = 1
|
||||||
|
colorscheme hybrid_material
|
||||||
|
|
||||||
" create a bar for airline
|
" create a bar for airline
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
|
|||||||
Reference in New Issue
Block a user