So basically, I'm testing out writing a Latex document in neovim. I want to make this as similar as an IDE as possible, but with some added Vim functionality. That includes having text that I'm writing display as text, not as concealed symbols. For example, I'd like my text to look like this:
Instead of this:
Below is my init.vim file. I'm very new to Vim and still learning the keybindings, so I don't know exactly what everything does, and I did just copy a lot of it:
filetype on
syntax on
filetype plugin indent on
set wrap
set textwidth=79
set formatoptions=tcqrn1
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set noshiftround
set showmode
set showcmd
set ttyfast
set matchpairs+=<:>
set number
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%l,%v][%p%%]\ [BUFFER=%n]\ %{strftime('%c')}
" Highlight matching search patterns
set hlsearch
" Enable incremental search
set incsearch
" Include matching uppercase words with lowercase search term
set ignorecase
" Include only uppercase words with uppercase search term
set smartcase
" Store info from no more than 100 files at a time, 9999 lines of text, 100kb of data. Useful for copying large amounts of data between files.
set viminfo='100,<9999,s100
call plug#begin('$HOME/.local/share/nvim')
Plug 'neoclide/coc.nvim' , { 'branch' : 'release' }
Plug 'sheerun/vim-polyglot'
Plug 'pangloss/vim-javascript'
Plug 'leafgarland/typescript-vim'
Plug 'jiangmiao/auto-pairs'
Plug 'alvan/vim-closetag'
"File search and navigation
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
"Editor interface and theming
Plug 'morhetz/gruvbox'
Plug 'vim-airline/vim-airline'
Plug 'ryanoasis/vim-devicons'
Plug 'yggdroot/indentline'
"Debugging, refactoring and version control
Plug 'puremourning/vimspector'
Plug 'lervag/vimtex'
let g:tex_flavor='latex'
Plug 'sirver/ultisnips'
let g:UltiSnipsExpandTrigger = '<tab>'
let g:UltiSnipsJumpForwardTrigger = '<tab>'
let g:UltiSnipsJumpBackwardTrigger = '<s-tab>'
Plug 'KeitaNakamura/tex-conceal.vim'
set conceallevel=0
let g:tex_conceal=''
hi Conceal ctermbg=none
call plug#end()
filetype plugin indent on
syntax enable
let g:vimtex_view_general_viewer = 'zathura'
let g:vimtex_quickfix_mode=0
let g:airline_powerline_fonts = 1
let g:coc_global_extensions = [ 'coc-tsserver' ]
colorscheme gruvbox
set bg=dark
nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gy <Plug>(coc-type-definition)
nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references)
:imap == <Esc>
You can see that I did set conceallevel=0
and g:tex_conceal=''
, but I still yield the same result as the second picture. Any help would be greatly appreciated!