update and additions
This commit is contained in:
@@ -58,7 +58,6 @@ set mousehide " Hide mouse pointer on insert mode."
|
||||
"set iskeyword+=:
|
||||
|
||||
"MAPPINGS
|
||||
set pastetoggle=<F2>
|
||||
map <F10> :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<'
|
||||
\. synIDattr(synID(line("."),col("."),0),"name") . "> lo<"
|
||||
\. synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">"<CR>
|
||||
@@ -75,46 +74,17 @@ nnoremap <leader>l :bnext<CR>
|
||||
nnoremap <leader>h :bprevious<CR>
|
||||
nnoremap <leader>c :Bdelete<CR>
|
||||
nnoremap <leader>r :make<CR>
|
||||
nnoremap <leader>ad :ArduinoUploadAndSerial<CR>
|
||||
nnoremap <leader>as :ArduinoSerial<CR>
|
||||
nnoremap <leader>ab :ArduinoChooseBoard<CR>
|
||||
nnoremap <leader>ap :ArduinoChoosePort<CR>
|
||||
|
||||
nnoremap <Left> :bprev<CR>
|
||||
nnoremap <Right> :bnext<CR>
|
||||
|
||||
" Set working dir
|
||||
nnoremap <leader>. :lcd %:p:h<CR>
|
||||
" Session management
|
||||
nnoremap <leader>so :OpenSession<Space>
|
||||
nnoremap <leader>ss :SaveSession<Space>
|
||||
nnoremap <leader>sd :DeleteSession<CR>
|
||||
nnoremap <leader>sc :CloseSession<CR>
|
||||
"
|
||||
" GitGutter maps
|
||||
noremap \hn <Plug>GitGutterNextHunk
|
||||
noremap \hp <Plug>GitGutterPreviewHunk
|
||||
noremap \hs <Plug>GitGutterStageHunk
|
||||
noremap \hr <Plug>GitGutterUndoHunk
|
||||
|
||||
"Git maps
|
||||
noremap <Leader>gs :Gstatus<CR>
|
||||
noremap <Leader>ga :Gwrite<CR>
|
||||
noremap <Leader>gc :Gcommit<CR>
|
||||
noremap <Leader>gsh :Gpush<CR>
|
||||
noremap <Leader>gb :Gblame<CR>
|
||||
noremap <Leader>gr :Gremove<CR>
|
||||
noremap <Leader>gll :Gpull<CR>
|
||||
noremap <Leader>gd :Gvdiff<CR>
|
||||
" Split
|
||||
noremap <Leader>b :<C-u>split<CR>
|
||||
noremap <Leader>v :<C-u>vsplit<CR>
|
||||
|
||||
|
||||
"POLYGLOT
|
||||
let g:polyglot_disabled = ['css', 'html', 'javascript']
|
||||
let g:vue_disable_pre_processors=0
|
||||
|
||||
"Plugins
|
||||
filetype off
|
||||
call plug#begin('~/.config/nvim/bundle')
|
||||
@@ -122,8 +92,6 @@ call plug#begin('~/.config/nvim/bundle')
|
||||
"Interfaces
|
||||
Plug 'Shougo/unite.vim'
|
||||
Plug 'mhinz/vim-startify'
|
||||
"Arduino
|
||||
Plug 'z3t0/arduvim'
|
||||
|
||||
"Utilities
|
||||
Plug 'Shougo/vimfiler.vim'
|
||||
@@ -133,58 +101,31 @@ Plug 'tpope/vim-repeat'
|
||||
Plug 'tpope/vim-endwise'
|
||||
Plug 'alvan/vim-closetag'
|
||||
Plug 'moll/vim-bbye'
|
||||
Plug 'w0rp/ale'
|
||||
Plug 'Shougo/deoplete.nvim'
|
||||
Plug 'fishbullet/deoplete-ruby'
|
||||
Plug 'Shougo/deoplete-rct'
|
||||
Plug 'editorconfig/editorconfig-vim'
|
||||
Plug 'vim-latex/vim-latex'
|
||||
Plug 'noahfrederick/vim-laravel'
|
||||
Plug '1995parham/vim-spice'
|
||||
" Plug 'https://gitlab.com/code-stats/code-stats-vim.git'
|
||||
|
||||
|
||||
"GIT
|
||||
Plug 'tpope/vim-fugitive'
|
||||
Plug 'airblade/vim-gitgutter'
|
||||
|
||||
"Ruby and rails
|
||||
Plug 'tpope/vim-rails'
|
||||
|
||||
"Javascript
|
||||
|
||||
" EMMET - HTML autocompletions
|
||||
Plug 'mattn/emmet-vim'
|
||||
|
||||
"syntax, colorscheme, etc. (visuals)
|
||||
Plug 'chrisbra/Colorizer'
|
||||
Plug 'itchyny/lightline.vim'
|
||||
Plug '1995parham/vim-spice'
|
||||
Plug 'mgee/lightline-bufferline'
|
||||
Plug 'ryanoasis/vim-devicons'
|
||||
Plug 'PotatoesMaster/i3-vim-syntax'
|
||||
Plug 'vim-scripts/octave.vim--'
|
||||
Plug 'sheerun/vim-polyglot'
|
||||
Plug 'tristaan/vim-smooth'
|
||||
Plug 'vivien/vim-linux-coding-style'
|
||||
Plug 'projekt0n/github-nvim-theme', { 'branch': 'main' }
|
||||
Plug 'sirtaj/vim-openscad'
|
||||
call plug#end()
|
||||
|
||||
"CODESTATS
|
||||
let g:codestats_api_key = 'SFMyNTY.WW1scmIyNXFZVE16IyNORFUzTnc9PQ.ad9U5r6g8iyXiE4Jlp3vfU_IGSHRwogX1-fXn8PZdBw'
|
||||
|
||||
"PYTHON
|
||||
let g:python_host_prog = '/usr/bin/python2'
|
||||
let g:python_host_prog = '/usr/bin/python3'
|
||||
let g:python3_host_prog = '/usr/bin/python3'
|
||||
|
||||
"RUBY
|
||||
let g:ruby_path = system('rvm current')
|
||||
|
||||
"SYNTAX COLORING AND COMPLETION
|
||||
filetype plugin indent on
|
||||
colorscheme github_dark_dimmed
|
||||
syntax enable
|
||||
colorscheme smooth
|
||||
set omnifunc=syntaxcomplete#Complete
|
||||
|
||||
"VIM SESSIONS
|
||||
let g:session_directory = "~/.vim/session"
|
||||
@@ -192,35 +133,9 @@ let g:session_autoload = "no"
|
||||
let g:session_autosave = "no"
|
||||
let g:session_command_aliases = 1
|
||||
|
||||
"GTM
|
||||
let g:gtm_plugin_status_enabled = 1
|
||||
|
||||
"VIMFILER
|
||||
let g:vimfiler_as_default_explorer = 1
|
||||
|
||||
"EMMET
|
||||
let g:user_emmet_install_global = 0
|
||||
let g:user_emmet_expandabbr_key = '<C-e>'
|
||||
let g:deoplete#enable_at_startup = 1
|
||||
" let g:deoplete#sources = [ 'tag', 'buffer' ]
|
||||
let deoplete#tag#cache_limit_size = 5000000
|
||||
|
||||
"LATEX
|
||||
let g:tex_flavor='latex'
|
||||
let g:Tex_DefaultTargetFormat='pdf'
|
||||
let g:Tex_ViewRule_pdf='firefox'
|
||||
let g:Tex_CompileRule_pdf='pdflatex -shell-escape'
|
||||
|
||||
"ARDUINO
|
||||
let g:arduino_dir = '/usr/share/arduino'
|
||||
|
||||
"ALE
|
||||
let g:ale_linters = {
|
||||
\ 'c': ['clang']
|
||||
\}
|
||||
let g:ale_c_clang_options = '-std=gnu11 -Wall -Wextra -Werror -lusb-1.0 -fexceptions -DNDEBUG'
|
||||
let g:ale_statusline_format = ['⨉ %d', '⚠ %d', '⬥ ok']
|
||||
|
||||
"STARTIFY
|
||||
let g:startify_list_order = [
|
||||
\ [' Most recently used in directory:'],
|
||||
@@ -323,7 +238,6 @@ endfunction
|
||||
function! LightlineFilename()
|
||||
return ('' != LightlineReadonly() ? LightlineReadonly() . ' ' : '') .
|
||||
\ (&ft == 'vimfiler' ? vimfiler#get_status_string() :
|
||||
\ &ft == 'unite' ? unite#get_status_string() :
|
||||
\ &ft == 'vimshell' ? vimshell#get_status_string() :
|
||||
\ '' != expand('%:t') ? expand('%:t') : '[No Name]') .
|
||||
\ ('' != LightlineModified() ? ' ' . LightlineModified() : '')
|
||||
@@ -353,15 +267,6 @@ function! LightlineMode()
|
||||
return winwidth(0) > 60 ? lightline#mode() : ''
|
||||
endfunction
|
||||
|
||||
"OMNICOMPLETE
|
||||
"FUNCTIONS
|
||||
function! PythonInit()
|
||||
set tabstop=4
|
||||
set softtabstop=4
|
||||
set shiftwidth=4
|
||||
set fileformat=unix
|
||||
endfunction
|
||||
|
||||
"AUTOCOMMANDS
|
||||
augroup helpfiles
|
||||
au!
|
||||
@@ -374,18 +279,6 @@ augroup filetypes
|
||||
au FileType html,css,eruby,php,vue EmmetInstall
|
||||
augroup END
|
||||
|
||||
augroup Vuefix
|
||||
au!
|
||||
au BufRead,BufNewFile *.vue setlocal filetype=vue
|
||||
au Filetype vue syntax sync fromstart
|
||||
augroup END
|
||||
|
||||
augroup spicefix
|
||||
au!
|
||||
au BufRead,BufNewFile *.cir setlocal filetype=spice
|
||||
au Filetype spice syntax sync fromstart
|
||||
augroup END
|
||||
|
||||
augroup newfiles
|
||||
au!
|
||||
au BufWritePre * %s/\s\+$//e
|
||||
|
||||
Reference in New Issue
Block a user