vim에서 커서 깜빡이(?)가 안나옵니다

kysu5095의 이미지

안녕하세요 제목이 조금 이상한데 뭐라고 표현해야할지 모르겠어서 저렇게 적은점 양해 부탁드립니다

원래 vim에 들어가 명령모드일 때 커서가 굵은흰색으로 표시되어 이동하거나 할 때

위치를 바로 알 수 있고, 입력모드로 들어가면 얇게 변하는데 현제 제 vim에서는

명령모드, 입력모드 둘 다 입력모드처럼 얇게 나타나 보기느 현제 모드상태를 한번에 알기 힘듭니다ㅠ

또한 search를 하였을 때 하이라이팅 기능만 작동하고 커서가 얇게 표시되어서 현제 어디를 보고 있는지

알 수가 없습니다ㅠㅠ 해결하는 방법 아시는분 계신가요?

환경은 Ubuntu 18.04 LTS를 wsl2에서 사용하고 있습니다.

아래는 vimrc 입니다.

if has("syntax")
	syntax on
endif
 
set title
set wmnu
set hlsearch
set nu
set ruler
set autoindent
set ts=4
set sts=4
set cindent
set laststatus=2
set shiftwidth=4
set showmatch
set smartcase
set smarttab
set smartindent
set ignorecase
set ruler
set mouse=a
set statusline=\ %<%l:%v\ [%P]%=%a\ %h%m%r\ %F\
au BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "norm g`\"" |
\ endif
 
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
	Plugin 'VundleVim/Vundle.vim'
	Plugin 'Raimondi/delimitMate'
    Plugin 'mhartington/oceanic-next'
	Plugin 'nathanaelkane/vim-indent-guides'
""    Plugin 'Valloric/YouCompleteM'
 
    Plugin 'davidhalter/jedi-vim'   " python 자동완성 Plugin
    let g:jedi#show_call_signatures=0       " 자세히 설명하는 창을 보여준다 1=활성화, 0=비>활성화
    let g:jedi#popup_select_first="0"   " 자동완성시 자동팝업 등장 x
    let g:jedi#force_py_version=3     " 자동완성 3 = python3 , 2 = python2
 
    Plugin 'hynek/vim-python-pep8-indent'   " python 자동 들여쓰기 Plugin
    filetype plugin indent on               " python 자동 들여쓰기 on
 
    Plugin 'nvie/vim-flake8'                " python 문법 검사 plugin
    " let g:syntastic_python_checkers=['flake8']        " ↓ 실행시 현재줄 주석
    " let g:syntastic_python_flake8_args='--ignore='    " 무시하고자 하는
call vundle#end()
 
let delimitMate_expand_cr=1
 
syntax enable
if (has("termguicolors"))
   set termguicolors
endif
 
let g:oceanic_next_terminal_bold = 1
let g:oceanic_next_terminal_italic = 1
colorscheme OceanicNext
set background=dark
 
hi Normal guibg=NONE ctermbg=NONE
hi LineNr guibg=NONE ctermbg=NONE
hi SignColumn guibg=NONE ctermbg=NONE
hi EndOfBuffer guibg=NONE ctermbg=NONE
 
let g:indent_guides_enable_on_vim_startup=1
"hi IndentGuidesOdd ctermbg=white
"hi IndentGuidesEven ctermbg=lightgrey
 
set ts=4 sw=4 et
let g:indent_guides_start_level=2
let g:indent_guides_guide_size=1
 
"YouCompleteMe
"let g:ycm_server_python_interpreter = '/usr/bin/python3'
"let g:ycm_global_ycm_extra_conf = '~/.ycm_extra_conf.py'
"let g:ycm_key_list_select_completion = ['', '']
"let g:ycm_key_list_previous_completion = ['', '']
"let g:SuperTabDefaultCompletionType = ''
"let g:ycm_autoclose_preview_window_after_completion=1
"map g :YcmCompleter GoToDefinitionElseDeclaration
"let g:ycm_semantic_triggers =  {'c' : ['->', '.'],'objc' : ['->', '.', 're!\[[_a-zA-Z]+\w*\s', 're!^\s*[^\W\d]\w*\s','re!\[.*\]\s'],'ocaml' : ['.', '#'],'cpp,objcpp' : ['->', '.', '::'],'perl' : ['->'],'php' : ['->', '::'],'cs,java,javascript,typescript,d,python,perl6,scala,vb,elixir,go' : ['.'],'ruby' : ['.', '::'],'lua' : ['.', ':'],'erlang' : [':'],}
파이썬3의 이미지

백업 해둔 후 디버깅을 합니다.

디버깅은 딴게 아니라...
기본 VIM에서 설정값 하나씩 대입후 커서가 사라지는 설정값을 포착합니다.
시간이 좀 걸리더라도 문제가 어데서 발생했는지 알아내는 가장 확실한 방법입니다.

찾아내면 차후엔...
vim 설정파일도 git 같은 버전 관리 시스템으로 유지-보수 하시길 권장하고 싶네요 ^^^

[크롬북에서 적었어요~]

kysu5095의 이미지

답변 감사드립니다!
답변자분 말처럼 하나씩 해보겠습니다!
====================================
혹시 다른 분들도 이와 같은 증상을 겪으실까 남겨드립니다.
일단 제 vim 모든 부분을 하나씩 주석처리하면서 시도해도 안되었는데

let &t_ti.="\e[1 q"
let &t_SI.="\e[5 q"
let &t_EI.="\e[1 q"
let &t_te.="\e[0 q"

위 코드를 넣어주니 정상 작동하였습니다

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.