Compare commits

1 Commits

Author SHA1 Message Date
7255654261 adapted colorscheme for DevTerm 2022-01-10 21:16:36 +00:00
9 changed files with 21 additions and 53 deletions

View File

@@ -1,7 +1,7 @@
let s:fontsize = 10 let s:fontsize = 10
function! AdjustFontSize(amount) function! AdjustFontSize(amount)
let s:fontsize = s:fontsize+a:amount let s:fontsize = s:fontsize+a:amount
:execute "GuiFont! Hack:h" . s:fontsize :execute "GuiFont! Source\ Code\ Pro:h" . s:fontsize
endfunction endfunction
noremap <C-ScrollWheelUp> :call AdjustFontSize(1)<CR> noremap <C-ScrollWheelUp> :call AdjustFontSize(1)<CR>
@@ -17,6 +17,6 @@ noremap <kMinus> :call AdjustFontSize(-1)<CR>
inoremap <C-kPlus> <Esc>:call AdjustFontSize(1)<CR>a inoremap <C-kPlus> <Esc>:call AdjustFontSize(1)<CR>a
inoremap <C-kMinus> <Esc>:call AdjustFontSize(-1)<CR>a inoremap <C-kMinus> <Esc>:call AdjustFontSize(-1)<CR>a
GuiFont! Hack:h11 GuiFont! Source\ Code\ Pro:h10
set mouse=a set mouse=a

View File

@@ -1,4 +1,5 @@
set background=dark set background=dark
set termguicolors set termguicolors
set t_Co=256 set t_Co=256
colorscheme catppuccin-mocha let ayucolor='mirage'
colorscheme darkblue

View File

@@ -37,8 +37,8 @@ set ignorecase
set smartcase set smartcase
"Informative statusline "Informative statusline
"set statusline=%F%m%r%h%w\ [TYPE=%Y\ %{&ff}]\ [%02l:%02v\ (%p%%)\ %L\ Lines]\ [ASCII=\%03.3b]\ [HEX=\%02.2B] set statusline=%F%m%r%h%w\ [TYPE=%Y\ %{&ff}]\ [%02l:%02v\ (%p%%)\ %L\ Lines]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]
"set laststatus=2 set laststatus=2
" Beautify the look and feel " Beautify the look and feel
syntax on syntax on
@@ -69,7 +69,7 @@ source ~/.config/nvim/wiki.vim
source ~/.config/nvim/rainbow.vim source ~/.config/nvim/rainbow.vim
source ~/.config/nvim/neomake.vim source ~/.config/nvim/neomake.vim
source ~/.config/nvim/keymap.vim source ~/.config/nvim/keymap.vim
" source ~/.config/nvim/timestamp.vim source ~/.config/nvim/timestamp.vim
source ~/.config/nvim/html.vim source ~/.config/nvim/html.vim
source ~/.config/nvim/vim-lsp.vim source ~/.config/nvim/vim-lsp.vim
source ~/.config/nvim/python.vim source ~/.config/nvim/python.vim

View File

@@ -4,8 +4,8 @@
noremap <F8> :bnext <CR> noremap <F8> :bnext <CR>
noremap <S-F8> :bprevious <CR> noremap <S-F8> :bprevious <CR>
" Define a shortcut to toggle the Neotree " Define a shortcut to turn on NERDTree
map <C-n> :NeoTreeShowToggle <CR> map <C-n> :NERDTreeToggle <CR>
" Copy to clipboard with Ctrl+C when in visual mode " Copy to clipboard with Ctrl+C when in visual mode
vnoremap <C-c> "+y vnoremap <C-c> "+y
@@ -28,11 +28,3 @@ nmap <silent> <C-j> <Plug>(LspNextDiagnostic)
" Map vim-grammarous to <F6> " Map vim-grammarous to <F6>
nmap <F6> :GrammarousCheck <CR> nmap <F6> :GrammarousCheck <CR>
" Map the esc key to close a terminal
tnoremap <ESC> <C-\><C-n>:bd!<CR>
" Map a key to toggle vim-pencil's auto formatting
noremap <silent> <F12> :<C-u>PFormatToggle<cr>
inoremap <silent> <F12> <C-o>:PFormatToggle<cr>

View File

@@ -10,22 +10,11 @@ function! SetServerName()
call system(cmd) call system(cmd)
endfunction endfunction
" Disable automatic folding in LaTeX
let Tex_FoldedSections=""
let Tex_FoldedEnvironments=""
let Tex_FoldedMisc=""
" Change the leading character for shortcuts, to free the '`' for UK-style
" quotes.
let Tex_Leader="~"
set grepprg=grep\ -nH\ $* set grepprg=grep\ -nH\ $*
let g:tex_flavor='latex' let g:tex_flavor='latex'
set iskeyword+=: set iskeyword+=:
let g:pencil#textwidth=100 autocmd BufRead *.tex set tw=100
let g:pencil#conceallevel=0
autocmd BufRead *.tex set spell autocmd BufRead *.tex set spell
autocmd BufRead,BufEnter *.tex nnoremap <F9> :w <CR> :!/usr/bin/waf configure build <CR> autocmd BufRead,BufEnter *.tex nnoremap <F9> :w <CR> :!/usr/bin/waf configure build <CR>
autocmd BufRead,BufEnter *.tex let b:AutoPairs = {'(':')', '[':']', '{':'}'} autocmd BufRead,BufEnter *.tex let b:AutoPairs = {'(':')', '[':']', '{':'}'}
autocmd FileType tex call SetServerName() autocmd FileType tex call SetServerName()
autocmd FileType tex call pencil#init({'wrap': 'hard', 'autoformat': 1})

View File

@@ -1,6 +0,0 @@
highlight Keyword cterm=bold ctermfg=yellow
highlight Tag ctermfg=blue
highlight Label ctermfg=lightyellow
highlight StorageClass cterm=bold ctermfg=lightgreen
highlight SpecialComment ctermfg=lightcyan
highlight PreCondit ctermfg=cyan

View File

@@ -1,7 +1,5 @@
" Settings for markdown " Settings for markdown
set grepprg=grep\ -nH\ $* set grepprg=grep\ -nH\ $*
let g:pencil#textwidth=80 autocmd BufRead *.md set tw=80
let g:pencil#conceallevel=0
autocmd BufRead *.md set spell autocmd BufRead *.md set spell
autocmd FileType markdown call pencil#init({'wrap': 'hard', 'autoformat': 1})

View File

@@ -1,26 +1,21 @@
" Specify a directory for plugins " Specify a directory for plugins
call plug#begin(stdpath('data') . '/plugged') call plug#begin(stdpath('data') . '/plugged')
" Colourthemes " Colourthemes
Plug 'Rigellute/shades-of-purple.vim' Plug 'kyoz/purify', { 'rtp': 'vim' }
Plug 'catppuccin/nvim', {'as': 'catppuccin'} Plug 'joshdick/onedark.vim'
Plug 'ayu-theme/ayu-vim'
Plug 'Brettm12345/moonlight.vim'
Plug 'fcpg/vim-fahrenheit'
" Editor extensions " Editor extensions
Plug 'neomake/neomake' Plug 'neomake/neomake'
Plug 'nvim-lua/plenary.nvim' Plug 'preservim/nerdtree'
Plug 'nvim-tree/nvim-web-devicons' Plug 'zhaocai/timestamp.vim'
Plug 'MunifTanjim/nui.nvim'
Plug 'preservim/vim-pencil'
Plug 'nvim-neo-tree/neo-tree.nvim'
"Plug 'zhaocai/timestamp.vim'
Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline'
Plug 'bling/vim-bufferline' Plug 'bling/vim-bufferline'
Plug 'junegunn/fzf.vim' Plug 'junegunn/fzf.vim'
Plug 'tpope/vim-commentary' Plug 'tpope/vim-commentary'
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'lighttiger2505/deoplete-vim-lsp'
Plug 'machakann/vim-highlightedyank' Plug 'machakann/vim-highlightedyank'
Plug 'nvim-treesitter/nvim-treesitter', { 'do': ':UpdateRemotePlugins' }
" Use rainbow parenthesis and automatic closing parens " Use rainbow parenthesis and automatic closing parens
Plug 'luochen1990/rainbow' Plug 'luochen1990/rainbow'
@@ -30,9 +25,6 @@ Plug 'jiangmiao/auto-pairs'
Plug 'prabirshrestha/vim-lsp' Plug 'prabirshrestha/vim-lsp'
Plug 'mattn/vim-lsp-settings' Plug 'mattn/vim-lsp-settings'
" Support for various git things
Plug 'airblade/vim-gitgutter'
" Language support for LaTeX " Language support for LaTeX
Plug 'vim-latex/vim-latex' Plug 'vim-latex/vim-latex'
Plug 'rhysd/vim-grammarous' Plug 'rhysd/vim-grammarous'
@@ -42,6 +34,7 @@ Plug 'chikamichi/mediawiki.vim'
" Syntaxhighlighting for .toml files " Syntaxhighlighting for .toml files
" Extras for rust " Extras for rust
Plug 'cespare/vim-toml' Plug 'cespare/vim-toml'
Plug 'racer-rust/vim-racer' Plug 'racer-rust/vim-racer'
@@ -53,5 +46,4 @@ Plug 'zchee/deoplete-jedi'
Plug 'davidhalter/jedi-vim' Plug 'davidhalter/jedi-vim'
Plug 'HiPhish/jinja.vim' Plug 'HiPhish/jinja.vim'
call plug#end() call plug#end()

2
timestamp.vim Normal file
View File

@@ -0,0 +1,2 @@
autocmd VimEnter * EnableTimestamp