Skip to content

Commit

Permalink
style(vim): Move plugin settings to another file
Browse files Browse the repository at this point in the history
Separate all settings to each genre.
  • Loading branch information
5ouma committed May 16, 2024
1 parent b09afd2 commit e47c220
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
1 change: 1 addition & 0 deletions config/vim/.config/vim/plugins.vim
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ let NERDTreeShowHidden = 1
let NERDTreeIgnore = ['.git', '.DS_Store']

" Pencil
silent! colorscheme pencil
let g:pencil_gutter_color = 1

" vim-lsp
Expand Down
13 changes: 5 additions & 8 deletions config/vim/.config/vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,9 @@ let t:XDG_CONFIG_HOME = exists($XDG_CONFIG_HOME) ? $XDG_CONFIG_HOME : expand("$H
let t:XDG_CACHE_HOME = exists($XDG_CACHE_HOME) ? $XDG_CACHE_HOME : expand("$HOME/.cache")
let t:XDG_DATA_HOME = exists($XDG_DATA_HOME) ? $XDG_DATA_HOME : expand("$HOME/.local/share")

"============================================================[ Path ]============================================================"

let &undodir = t:XDG_CACHE_HOME .. '/vim/undo' | call mkdir(&undodir, 'p')
let &viminfofile = t:XDG_CACHE_HOME .. '/vim/info'

"============================================================[ Source ]============================================================"

execute 'source' t:XDG_CONFIG_HOME .. '/vim/plugins.vim'
execute 'source' t:XDG_CONFIG_HOME .. '/vim/keymap.vim'

"============================================================[ Settings ]============================================================"

set encoding=UTF-8
Expand All @@ -29,7 +22,6 @@ set backspace=indent,eol,start
set shellcmdflag=-ic

" Appearance
silent! colorscheme pencil
set number
set cursorline
set virtualedit=onemore
Expand All @@ -51,3 +43,8 @@ set ignorecase
set incsearch
set smartcase
set wrapscan

"============================================================[ Source ]============================================================"

execute 'source' t:XDG_CONFIG_HOME .. '/vim/plugins.vim'
execute 'source' t:XDG_CONFIG_HOME .. '/vim/keymap.vim'

0 comments on commit e47c220

Please sign in to comment.