Guest User

Untitled

a guest
Jul 13th, 2025
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.96 KB | None | 0 0
  1. " █▀ ▄▀█ █ ▄▀█ █▄░█ █▀█ █▄░█ █▄█ █▀▄▀█ █▀█ █░█ █▀
  2. " ▄█ █▀█ █ █▀█ █░▀█ █▄█ █░▀█ ░█░ █░▀░█ █▄█ █▄█ ▄█
  3.  
  4.  
  5. set nocompatible
  6. filetype plugin on
  7. syntax on
  8.  
  9.  
  10. :set autoindent
  11. ":set relativenumber
  12. :set tabstop=4
  13. :set shiftwidth=4
  14. :set mouse=a
  15. ":let g:loaded_python3_provider = 0
  16. let g:python3_host_prog = '/usr/bin/python3' " -- Set python 3 provider
  17. :set smarttab
  18. :nnoremap <silent> <C-N> :NERDTreeToggle<CR>
  19. :set softtabstop=4
  20. :set number relativenumber
  21. set clipboard=unnamedplus
  22. set encoding=UTF-8
  23. set expandtab
  24. set incsearch
  25. set ignorecase
  26. set smartcase
  27. set nohlsearch
  28. set ttimeoutlen=50
  29. set termguicolors
  30. set backspace=indent,eol,start
  31.  
  32. runtime! ./plugged/telescope.nvim/plugin/telescope.lua
  33.  
  34. packloadall
  35. command! -nargs=0 Sw w !sudo tee % > /dev/null
  36.  
  37. nnoremap <leader>e <cmd>Explore<cr>
  38. nnoremap <leader>ts <cmd>Telescope<cr>
  39. nnoremap <leader>ff <cmd>Telescope find_files<cr>
  40. nnoremap <leader>fg <cmd>Telescope live_grep<cr>
  41. nnoremap <leader>ss :Screenshot<CR>
  42. nnoremap <leader>zm :ZenMode<CR>
  43. nnoremap <leader>ts :Telescope<CR>
  44. tnoremap <Esc> <C-\><C-n>
  45. inoremap ( ()<Left>
  46. inoremap (( (
  47. inoremap [ []<Left>
  48. inoremap [[ [
  49. inoremap { {}<Left>
  50. inoremap {{ {
  51. inoremap " ""<Left>
  52. inoremap "" "
  53. inoremap ' ''<Left>
  54. inoremap '' '
  55. " inoremap /* /**/<Left><Left>
  56.  
  57. let g:lsp_signs_enable = v:true
  58. let g:neosnippet#snippets_directory='~/.config/nvim/plugged/vim-snippets/snippets'
  59. let g:NERDTreeWinPos = 'right'
  60. let g:lsp_diagnostics_enabled = v:true
  61. let g:UltiSnipsExpandTrigger='<c-f>'
  62. let g:UltiSnipsJumpForwardTrigger='<c-b>'
  63. let g:UltiSnipsJumpBackwardTrigger='<c-z>'
  64. let g:UltiSnipsListSnippets='<c-l>'
  65. let g:netrw_bufsettings = 'noma nomod nu nobl nowrap ro'
  66.  
  67. " let g:UltiSnipsExpandTrigger='<c-f>'
  68. let g:easycomplete_diagnostics_next = "<C-j>"
  69. let g:easycomplete_diagnostics_previous = "<C-k>"
  70. let g:easycomplete_tab_trigger="<c-space>"
  71. ":set nu rnu
  72. ":inoremap <S-space> _<CR>
  73. "let g:clipboard = 'unnamed'
  74. "let g:clipboard = {
  75. " \ 'name': 'wl-clipboard',
  76. " \ 'copy': {
  77. " \ '+': ['tmux', 'load-buffer', '-'],
  78. " \ '*': ['tmux', 'load-buffer', '-'],
  79. " \ },
  80. " \ 'paste': {
  81. " \ '+': ['tmux', 'save-buffer', '-'],
  82. " \ '*': ['tmux', 'save-buffer', '-'],
  83. " \ },
  84. " \ 'cache_enabled': 1,
  85. " \ }
  86. "set clipboard=wl-clipboard
  87.  
  88. " Clipboard Begin
  89. " " Copy to clipboard
  90. " vnoremap <leader>y "+y
  91. " nnoremap <leader>Y "+yg_
  92. " nnoremap <leader>y "+y
  93. " nnoremap <leader>yy "+yy
  94.  
  95. " " Paste from clipboard
  96. " nnoremap <leader>p "+p
  97. " nnoremap <leader>P "+P
  98. " vnoremap <leader>p "+p
  99. " vnoremap <leader>P "+P
  100. " " Clipboard End
  101. "
  102. "
  103.  
  104. " " ASM-specific Vim configuration
  105. " augroup asm_files
  106. " autocmd!
  107. " " Detect .asm files as assembly
  108. " autocmd BufRead,BufNewFile *.asm set filetype=asm
  109. "
  110. " " Apply settings only to ASM files
  111. " autocmd FileType asm setlocal syntax=asm
  112. " autocmd FileType asm setlocal comments=:; " Comments start with ;
  113. " autocmd FileType asm setlocal commentstring=;%s
  114. " autocmd FileType asm setlocal tabstop=4 " 8-space tabs
  115. " autocmd FileType asm setlocal softtabstop=4
  116. " autocmd FileType asm setlocal shiftwidth=4
  117. " autocmd FileType asm setlocal noexpandtab " Use actual tabs
  118. " autocmd FileType asm setlocal number " Show line numbers
  119. " autocmd FileType asm setlocal listchars=tab:→\ ,trail:· " Visualize tabs/trailing spaces
  120. " autocmd FileType asm setlocal list
  121. " augroup END
  122.  
  123. " in your .vimrc (_vimrc for Windows)
  124.  
  125.  
  126.  
  127. call plug#begin('~/.config/nvim/plugged')
  128. " The default plugin directory will be as follows:
  129. " - Vim (Linux/macOS): '~/.vim/plugged'
  130. " - Vim (Windows): '~/vimfiles/plugged'
  131. " - Neovim (Linux/macOS/Windows): stdpath('data') . '/plugged'
  132. " You can specify a custom plugin directory by passing it as the argument
  133. " - e.g. `call plug#begin('~/.vim/plugged')`
  134. " - Avoid using standard Vim directory names like 'plugin'
  135.  
  136. " Make sure you use single quotes
  137.  
  138. " Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
  139. Plug 'junegunn/vim-easy-align'
  140.  
  141. " Plug 'MeanderingProgrammer/render-markdown.nvim'
  142.  
  143. " Any valid git URL is allowed
  144. Plug 'https://github.com/junegunn/vim-github-dashboard.git'
  145.  
  146. " Multiple Plug commands can be written in a single line using | separators
  147. Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
  148. " Plug 'Valloric/YouCompleteMe'
  149. " Plug 'ycm-core/YouCompleteMe'
  150. " vim-easycomplete
  151. "Plug 'Valloric/YouCompleteMe' Plug 'jayli/vim-easycomplete'
  152. Plug 'jayli/vim-easycomplete'
  153.  
  154. " GLSL
  155. Plug 'tikhomirov/vim-glsl'
  156.  
  157.  
  158. " Plug 'BurntSushi/ripgrep'
  159.  
  160. Plug 'folke/zen-mode.nvim'
  161.  
  162. " Icons nerdtree
  163. Plug 'ryanoasis/vim-devicons'
  164.  
  165. "
  166. Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
  167.  
  168. " vim-plug
  169. Plug 'lervag/vimtex'
  170.  
  171. " On-demand loading
  172. Plug 'preservim/nerdtree', { 'on': 'NERDTreeToggle' }
  173. Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
  174.  
  175. " Using a non-default branch
  176. "Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' }"
  177. Plug 'nvim-lua/plenary.nvim'
  178. Plug 'nvim-telescope/telescope.nvim', { 'tag': '0.1.8' }
  179. " or , { 'branch': '0.1.x' }
  180. Plug 'BurntSushi/ripgrep'
  181. Plug 'nvim-treesitter/nvim-treesitter', {'tag': 'v0.10.0', 'do': ':TSUpdate'}
  182.  
  183. "Theme"
  184. Plug 'folke/tokyonight.nvim', { 'branch': 'main' }
  185.  
  186. " Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
  187. Plug 'fatih/vim-go', { 'tag': '*' }
  188.  
  189. " Plugin options
  190. Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' }
  191.  
  192. " Plugin outside ~/.vim/plugged with post-update hook
  193. Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
  194.  
  195. " Unmanaged plugin (manually installed and updated)
  196. Plug '~/my-prototype-plugin'
  197.  
  198. " Latexrun
  199. Plug 'aclements/latexrun'
  200.  
  201. " Plug 'ycm-core/YouCompleteMe'
  202.  
  203. " Screenshot plugin
  204. Plug 'mistweaverco/Screenshot.nvim'
  205.  
  206. " Telescope.nvim
  207. Plug 'nvim-lua/plenary.nvim'
  208. Plug 'nvim-telescope/telescope.nvim' " , { 'tag': '0.1.8' }
  209. " or , { 'branch': '0.1.x' }
  210. " Initialize plugin system
  211. " - Automatically executes `filetype plugin indent on` and `syntax enable`.
  212. call plug#end()
  213. " You can revert the settings after the call like so:
  214. " filetype indent off " Disable file-type-specific indentation
  215. " syntax off " Disable syntax highlighting
  216.  
  217. filetype off " required
  218.  
  219. " set the runtime path to include Vundle and initialize
  220. set rtp+=~/.config/nvim/bundle/Vundle.vim
  221. call vundle#begin('~/.config/nvim/bundle')
  222.  
  223. "
  224. "
  225. " alternatively, pass a path where Vundle should install plugins
  226. "call vundle#begin('~/some/path/here')
  227. " let Vundle manage Vundle, required
  228. Plugin 'VundleVim/Vundle.vim'
  229. Plugin 'sudoerwx/vim-ray-so-beautiful'
  230. " The following are examples of different formats supported.
  231. " Keep Plugin commands between vundle#begin/end.
  232. " plugin on GitHub repo
  233. Plugin 'tpope/vim-fugitive'
  234. " plugin from http://vim-scripts.org/vim/scripts.html
  235. " Plugin 'L9'
  236. " Git plugin not hosted on GitHub
  237. "Plugin 'git://git.wincent.com/command-t.git'
  238. " git repos on your local machine (i.e. when working on your own plugin)
  239. "Plugin 'file:///home/gmarik/path/to/plugin'
  240. " The sparkup vim script is in a subdirectory of this repo called vim.
  241. " Pass the path to set the runtimepath properly.
  242. Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
  243. " Install L9 and avoid a Naming conflict if you've already installed a
  244. " different version somewhere else.
  245. " Plugin 'ascenator/L9', {'name': 'newL9'}
  246.  
  247. " All of your Plugins must be added before the following line
  248. call vundle#end() " required
  249. filetype plugin indent on " required
  250. colorscheme tokyonight-night
  251. vnoremap <F5> :Ray<CR>
  252.  
  253.  
  254. " This is necessary for VimTeX to load properly. The "indent" is optional.
  255. " Note that most plugin managers will do this automatically.
  256. filetype plugin indent on
  257.  
  258. " This enables Vim's and neovim's syntax-related features. Without this, some
  259. " VimTeX features will not work (see ":help vimtex-requirements" for more
  260. " info).
  261. " syntax enable
  262.  
  263. " Viewer options: One may configure the viewer either by specifying a built-in
  264. " viewer method:
  265. let g:vimtex_view_method = 'zathura'
  266.  
  267. " Or with a generic interface:
  268. let g:vimtex_view_general_viewer = 'okular'
  269. let g:vimtex_view_general_options = '--unique file:@pdf\#src:@line@tex'
  270.  
  271. " VimTeX uses latexmk as the default compiler backend. If you use it, which is
  272. " strongly recommended, you probably don't need to configure anything. If you
  273. " want another compiler backend, you can change it as follows. The list of
  274. " supported backends and further explanation is provided in the documentation,
  275. " see ":help vimtex-compiler".
  276. let g:vimtex_compiler_method = 'pdflatex'
  277.  
  278. "let g:vimtex_compiler_latexmk = {
  279. " \ 'options' : [
  280. " \ '--pdf',
  281. " \ '--shell-escape',
  282. " \ '--verbose',
  283. " \ '--file-line-error',
  284. " \ '--synctex=1',
  285. " \ '--interaction=nonstopmode',
  286. " \ ],
  287. " \}
  288.  
  289. " Most VimTeX mappings rely on localleader and this can be changed with the
  290. " following line. The default is usually fine and is the symbol "\".
  291. let maplocalleader = ","
  292.  
  293.  
  294. " Trigger configuration. Do not use <tab> if you use
  295. " https://github.com/Valloric/YouCompleteMe.
  296.  
  297. " shortcut to go to next position
  298. "let g:UltiSnipsJumpForwardTrigger='<c-j>'
  299.  
  300. " shortcut to go to previous position
  301. "let g:UltiSnipsJumpBackwardTrigger='<c-k>'
  302.  
  303.  
  304. let nnoremaplocalleader = ","
  305.  
  306. " nnoremap <localleader>ex :!chmod +x build.sh<CR>
  307. " nnoremap <localleader>cr :!./build.sh<CR>
  308. " let g:ray_base_url = 'http://localhost:3000'
  309. let g:ray_browser = 'firefox'
  310. " let g:deoplete#enable_at_startup = 1
  311. "
  312.  
  313.  
  314.  
  315. if ! has('gui_running')
  316. set ttimeoutlen=10
  317. augroup FastEscape
  318. autocmd!
  319. au InsertEnter * set timeoutlen=0
  320. au InsertLeave * set timeoutlen=1000
  321. augroup END
  322. endif
  323.  
  324.  
  325.  
  326.  
  327.  
Advertisement
Add Comment
Please, Sign In to add comment